-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[4.0] Workflow Transitions/Stages #21592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR for joomla#21586 Despite comments the fix was NOT in joomla#21566
1. Change the editor field to a text field - I am sure you will never need a full wysiwyg editor here 2. Add a label to the field called "Note" 2. change the tmpl to get the list of fields from the xml instead of being hardcoded 3. Add the content of the "note" to the list view. I really can't see the point in having the note if you can't see it in the list
| </div> | ||
| <?php echo $this->form->getInput('description'); ?> | ||
| <?php foreach ($this->form->getGroup('transition') as $field) : ?> | ||
| <?php echo $field->renderField(); ?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've added some extra tabs here
| @@ -1,9 +1,10 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
| <form> | |||
| <fields name="transition"> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we indent the fieldset here if we're squeezing in the <fields> element please
|
LGTM. Let's just get one test here |
|
Moved the name above the tabs for consistency |
|
Something isnt correct here - probably a silly error by me - but the edit is not displaying the note or saving correctly. I will take another look in the morning unless some kind sole wants to submit a pr to my branch with the fix |
|
You've added the fields tag. So the fields names have changed to e.g. joomla-cms/administrator/components/com_workflow/Model/TransitionModel.php Lines 39 to 48 in 51ea31b
(just doing this off code review - please check what i've written before attempting anything) |
|
Makes sense. Will check in the morning |
|
And probably the getState |
|
OK now updated for stages and ready for testing |
|
@bembelimen I think this is clearer in the edit view and also means you can see all the notes at once in the list view - hope you agree |
|
In general I really like this PR, but two things:
|
I assume you mean in the list view? It is below to be consistent with similar additional information on other lists - also allows a bit more space and if it was to wrap onto a second line it will look better this way |
We don't have nested fields anymore with this (that's when you use a "fields" tag) this just names the fieldsets, which is required for allowing plugins to add more custom fields (for example see what I've done with the groups view in #21696) |
|
@wilsonge But there is a difference: you add the name to the fieldset, here we added a new "fields" tag: https://github.com/joomla/joomla-cms/pull/21592/files#diff-6d3a9c00497a5503546ac43bbad8023eR10 |
|
|
conflicts resolved |
| <div class="small"><?php echo $item->description; ?></div> | ||
| <?php else: ?> | ||
| <?php echo $item->title; ?> | ||
| <div class="small"><?php echo $item->description; ?></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should add $this->escape(...) here, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was following your code style above for title
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wilsonge please advise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
Thanks! |

(Same has been done for stages)
After