https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37891

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #172037|0                           |1
        is obsolete|                            |

--- Comment #10 from Jonathan Druart <[email protected]> ---
Created attachment 172224
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=172224&action=edit
Bug 37891: Submit SMS related data even if SMSSendDriver is empty.

The bug is caused by the SMS data not being submitted as its fieldset is
disabled if SMSSendDriver is empty.
This causes the SMS instance of the notice to not be updated when the edit
happens, becoming out of sync.
Once it becomes out of sync with the other notices of same code but different
transport_type, the 'GROUP BY branchcode,module,code,name,branchname' in
letter.pl will fail, as the name no longer matches, listing the same notice
twice on the notices table.

This patch updates the logic on the template to have the SMS input elements be
disabled/readonly instead of having disabled='disabled' on the SMS fieldset.
This keeps the same functionality i.e. staff member is unable to edit SMS
notice if SMSSendDriver is disabled, but ensures that SMS related data is
submitted to the controller when the notice edit save happens.

Test plan:
1) Visit notices and slips:
  <staff_url>/cgi-bin/koha/tools/letter.pl
2) Search for a notice code e.g. 'ILL_REQUEST_UPDATE'.
3) Notice only one result is returned. Click 'Edit'.
4) Edit the 'Name'. Click 'Save'.
5) Repeat 2. Notice two results are now returned.
6) Apply patch. Repeat test plan. Notice only one result is returned at the
end.

Signed-off-by: Jason Robb <[email protected]>

Amended-by: Jonathan Druart
Align

Signed-off-by: Jonathan Druart <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to