Block duplicate function has a serious bug
Permalink Browser Info Environment
public function duplicate in block controller sends wrong array values. So if i made any custom template and select that template block values for items in btVividSimpleSlide becomes null.
function should be changed for row values instead of args like:
Being said that, thanks for sharing this block as a feed add-on.
function should be changed for row values instead of args like:
public function duplicate($newBID) { parent::duplicate($newBID); $db = Loader::db(); $v = array($this->bID); $q = 'select * from btVividSimpleSlide where bID = ?'; $r = $db->query($q, $v); while ($row = $r->FetchRow()) { $vals = array( $newBID, $row['title'], $row['slidedesc'], $row['btnText'], $row['fID'], $row['pageID'], $row['sort']
Viewing 15 lines of 19 lines. View entire code block.
Being said that, thanks for sharing this block as a feed add-on.
Type: | Discussion |
---|---|
Status: | Resolved |