Closed (fixed)
Project:
Views PHP
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Dec 2021 at 16:20 UTC
Updated:
29 Dec 2021 at 20:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
frank.schram commentedComment #3
andregp commentedIts a simple case of changing the order of parameters to follow Drupal standard of letting all optional parameters at last.
I'll fix it.
Comment #4
andregp commentedChanged the order of parameter on the function views_php_form_element() (on views_php.module) and then changed all calls to this function on the other files accordingly.
Comment #6
andregp commentedComment #7
liam morlandThanks for the patch.
Changing the order of the parameters would break any code that uses this. The correct fix is to remove the default value from any parameter that is followed by a parameter without a default value.
Please put the fix into an issue fork.
Comment #8
andregp commentedHi Lian, I made the change as you asked for, added on a issue fork, and made a merge request.
Comment #10
andregp commentedComment #12
liam morlandThanks!