LP#1205072 - Action Trigger Granularity Case Sensitivity user/stompro/lp1205072-action-trig-granularity-ui-case-insensitive
authorJosh Stompro <stomproj@larl.org>
Thu, 14 May 2015 02:11:08 +0000 (21:11 -0500)
committerJosh Stompro <stomproj@larl.org>
Thu, 14 May 2015 02:11:08 +0000 (21:11 -0500)
commit8cd8e70646d9aecdcf8bf8bc4d0ef7568003bb37
tree71b65548edad3a45ede8f220c9da839104159fac
parent1d959b65b49183388e2f35b3b580e748ab23ed45
LP#1205072 - Action Trigger Granularity Case Sensitivity

This change makes the granularity settings case insensitive.

To test this issue
1. Create/Modify an action trigger to have an all uppercase granularity settings.
2. Run action_trigger_runner.pl with the same granularity set to lowercase
3. Observe that the events are not processed.

After the change is applied the granularity case doesn't matter for either the event_definition
or the flag to action_trigger_runner.pl.

I didn't modify the code path for when the granularity only flag isn't set since it
never gets used, and I don't want to change what I cannot test.  Maybe the best course
of action would just be to remove that section?

Signed-off-by: Josh Stompro <stomproj@larl.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger.pm