Skip to content

Conversation

@brianteeman
Copy link
Contributor

If a task has a note then it is displayed below the task name inside a small span (just like in all other components)

If a task does not have a note then a small span is still present but it contains a language string (which is empty)

There is no need for this empty span and there is certainly no need for a language string with no content.

To test

Create a new task with a note
Create another new task without a note
Check the source code and you will see the empty span on the second task

Apply this PR
Refresh and check the source of the page again. This time there is no empty span on the task without a note and the note is still displayed on the other task.

If a task has a note then it is displayed below the task name inside a small span (just like in all other components)

If a task does not have a note then a small span is still present but it contains a language string (which is empty)

There is no need for this empty span and there is certainly no need for a language string with no content.

## To test
Create a new task with a note
Create another new task without a note
Check the source code and you will see the empty span on the second task

Apply this PR
Refresh and check the source of the page again. This time there is no empty span on the task without a note and the note is still displayed on the other task.
@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-4.1-dev labels Dec 6, 2021
<?php echo $this->escape($item->title); ?>
<?php endif; ?>

<span class="small">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move inside the if statement to not have an empty span when no note.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - that was the whole point of this pr - doh

@Quy
Copy link
Contributor

Quy commented Dec 6, 2021

I have tested this item ✅ successfully on 0ce9a11


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36244.

@richard67
Copy link
Member

@brianteeman Couldn't the "COM_SCHEDULER_NO_NOTE" string be removed from the language file? As far as I can see it is not used anymore after the change here.

@brianteeman
Copy link
Contributor Author

brianteeman commented Dec 6, 2021

@richard67 it is removed

@richard67
Copy link
Member

Oh, how could I miss that.

@alikon
Copy link
Contributor

alikon commented Dec 8, 2021

I have tested this item ✅ successfully on d807091


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36244.

@alikon
Copy link
Contributor

alikon commented Dec 8, 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36244.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 8, 2021
@bembelimen bembelimen merged commit 01ac616 into joomla:4.1-dev Dec 13, 2021
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 13, 2021
@bembelimen
Copy link
Contributor

Thx

@bembelimen bembelimen added this to the Joomla 4.1 milestone Dec 13, 2021
@brianteeman
Copy link
Contributor Author

thx

@brianteeman brianteeman deleted the task_notes branch December 13, 2021 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants