I'm trying to create a contract and no matter how many times I click the save button nothing happens. I get no errors, no saving, no confirmation, just nothing.
I can confirm this bug. Firebug shows a Javascript error: ReferenceError: Date_from_syspref is not defined [Bei diesem Fehler anhalten] var startDate = Date_from_syspref($("#contractstartdate").val());
I think the problem was caused by the switch to the new calendar, because the new calendar.inc file is missing the function. Date_from_syspref. The function is also used in claim.tt
Created attachment 11799 [details] [review] Bug 8428 - can't save contracts When I replaced the old calendar widget with the jQueryUI version we lost a JavaScript function which is required by a couple of pages: Date_from_syspref. This patch adds the function back to the calendar include and corrects variables in the two affected templates to make it work again. To test: - create a new contract. Submitting should work properly and without JavaScript errors. - Open the serials claims page (serials/claims.pl) and filter the results by date. Submitting the filter form should work properly and without JavaScript errors.
Created attachment 11800 [details] [review] [SIGNED-OFF] Bug 8428 - can't save contracts When I replaced the old calendar widget with the jQueryUI version we lost a JavaScript function which is required by a couple of pages: Date_from_syspref. This patch adds the function back to the calendar include and corrects variables in the two affected templates to make it work again. To test: - create a new contract. Submitting should work properly and without JavaScript errors. - Open the serials claims page (serials/claims.pl) and filter the results by date. Submitting the filter form should work properly and without JavaScript errors. Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> Both tests passed.
Created attachment 11801 [details] serials claim form messed up The patch works, and I'm not sure if the patch caused this design issue so I signed off. A follow up should be submitted to make it so that the title search box appears next to the Title label instead of the Library label like it does now. Nicole
(In reply to comment #5) > A follow up should be submitted to make it so that the title > search box appears next to the Title label instead of the Library label like > it does now. This issue is unrelated to the changes made in this patch.
Design issue submitted in Bug 8681
Comment on attachment 11801 [details] serials claim form messed up removing - now on Bug 8681
(In reply to comment #4) > Created attachment 11800 [details] [review] > [SIGNED-OFF] Bug 8428 - can't save contracts > Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> > Both tests passed. passing QA... $ koha-qa.pl testing 1 commit(s) (applied to commit 0acebb8) * d4f2940 Bug 8428 - can't save contracts koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt * koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc OK * koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt OK * koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt OK
Patch pushed to master
Doesn't apply on 3.8.x please reformat if needed
(In reply to comment #11) > Doesn't apply on 3.8.x please reformat if needed Not needed. The bug is related to the addition of the jQueryUI datepicker which isn't in 3.8.x.
Resolved in 3.10.0