It would seem there's a bug in 5.51
From the .axp, using the 12 hour data format (the last one in the original file):
Code: Select all
<dataFormat>
<![CDATA[13]]>
</dataFormat>
This results in the following in the generated code:
Code: Select all
# grep -r FORMAT
incCommon.php: 'customer' => "`customer`.`id` as 'id', DATE_FORMAT(`customer`.`name`, '%h:%i %p') as 'name'",
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
customer_view.php: "DATE_FORMAT(`customer`.`name`, '%h:%i %p')" => "name"
admin/pageViewMembers.php: $res=sql("select lcase(m.memberID), g.name, DATE_FORMAT(m.signupDate, '" . makeSafe($adminConfig['MySQLDateFormat'], false) . "'), m.custom1, m.custom2, m.custom3, m.custom4, m.isBanned, m.isApproved from membership_users m left join membership_groups g on m.groupID=g.groupID $where order by m.signupDate limit $start, " . intval($adminConfig['membersPerPage']), $eo);
Then, changing the data format of 'name' to ANY custom format... in the .axp:
Code: Select all
<dataFormat>
<![CDATA[14]]>
</dataFormat>
But in the generated code:
Code: Select all
# grep -r customer...name
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
ajax_combo.php: 'parent_caption' => '`customer`.`name`',
incCommon.php: 'customer' => "`customer`.`id` as 'id', `customer`.`name` as 'name'",
customer_view.php: "`customer`.`name`" => "name"
customer_view.php: "`customer`.`name`" => "name"
customer_view.php: "`customer`.`name`" => "Name"
customer_view.php: "`customer`.`name`" => "name"
So I swapped the 12 hour and UPPER lines, thinking perhaps the file was being truncated at 13 (original count) lines. Interestingly, it (UPPER) still did not work.
I suggest this be forwarded to support as a major bug.