[adminer-tracker] [ adminer-Bugs and Features-3194500 ] selectColumnsProcess alters the table retur
Database management in a single PHP file
Brought to you by:
jakubvrana
From: SourceForge.net <no...@so...> - 2011-05-24 15:04:13
|
Bugs and Features item #3194500, was opened at 2011-02-28 00:46 Message generated for change (Comment added) made by jakubvrana You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1127745&aid=3194500&group_id=264133 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: brad hanson (bradhmn) Assigned to: Nobody/Anonymous (nobody) Summary: selectColumnsProcess alters the table returned Initial Comment: 1. if i return (array(),array()) it works the same as if it wasn't called at all. 2. if i return ($columns,array()) it now has: 2.a. column headers of asterisks and not the column names. 2.b. no edit checkbox or link for each row. 2.c. an E-mail option in addition to the Export and Import. not clear why this behavior would change to this extent. is this expectecd behavior? if so, how can 2a and 2b be restored and 2c eliminated? thanks. again. ---------------------------------------------------------------------- >Comment By: Jakub Vrna (jakubvrana) Date: 2011-05-24 17:04 Message: 2.a Fixed in Git 2.b You should return array($columns, $columns) 2.c Implement selectEmailPrint() ---------------------------------------------------------------------- Comment By: brad hanson (bradhmn) Date: 2011-02-28 17:31 Message: what I was doing was trying to simply add text for a first name that was blank in the select. return array(array("if(First='','~guest of',First) First","Last","Meal","Dessert","Comments","Email"),array()); the resulting SELECT seems to be okay when I look at the page source.. <!-- SELECT if(First='','~guest of',First) First, Last, Meal, Dessert, Comments, Email FROM `event_guests` WHERE `TableTag` LIKE 'Shann%' ORDER BY Last, First LIMIT 30 --> but then the page displayed shows asterisks for each column header. no edit checkbox or link to the left of each row. and adds the "E-mail" option that didn't appear before. even when I return simply return array($columns,array()); it results in the same. ---------------------------------------------------------------------- Comment By: Jakub Vrna (jakubvrana) Date: 2011-02-28 16:16 Message: It is usually better to define fieldName() and return an empty string for columns which you don't want to display ($order > 0 when selecting). What exactly are you trying to achieve? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1127745&aid=3194500&group_id=264133 |