BUG: Date Quick Pick script bug in OrderNotesManager.aspx.cs

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 435
Joined: Tue May 07, 2013 1:59 pm

BUG: Date Quick Pick script bug in OrderNotesManager.aspx.cs

Post by jguengerich » Fri May 04, 2018 1:44 am

In R12, there are two errors in the code that builds the javascript dateQP function in \Admin\Orders\OrderNotesManager.aspx.cs. These errors result in an invalid script, so the date fields are not filled in when you choose an item from the Date Quick Pick drop-down.

Error # 1:
Line 32 should be:

Code: Select all

string setStart = "startPicker.value = '{0}';";  // Remove two extra parentheses before the first semicolon.
instead of:

Code: Select all

string setStart = "startPicker.value = '{0}'));";

Error #2:
Line 34 should be:

Code: Select all

string clearStart = "startPicker.value = '';";  // Add semicolon between the second single quote and the double quote.
instead of:

Code: Select all

string clearStart = "startPicker.value = ''";
EDIT: Submitted bug report also.
Jay

Post Reply