Closed (fixed)
Project:
Modal
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2019 at 19:51 UTC
Updated:
31 Dec 2019 at 14:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
thallesFollow the patch!
Comment #3
renatog commentedVery good, Thalles. Thanks
But we have an error here
if (empty(trim($modal->pages->value)) || empty(trim($modal->paramenters->value))) {We need to check Modal Type, because if modal type == page so parameters will be empty (and if modal type == parameter so $modal->pages will be empty as well.
Following this logic aways one of them will be empty (or pages or parameters)
Please check this patch: #3098094: Create a hook update to update all modals for published = TRUE
E.g:
Comment #4
thallesFollow a new patch!
Comment #5
thallesComment #6
renatog commentedIt really looks good.
Comment #8
thalles