Merge pull request #996 from Jennydmz/BUG-6855
BUG-6855 Error message in 'Database Conections' clicking in Edit or Delete title.
This commit is contained in:
@@ -77,10 +77,10 @@
|
|||||||
|
|
||||||
//order by
|
//order by
|
||||||
$orderBy = get_ajax_value('order');
|
$orderBy = get_ajax_value('order');
|
||||||
if (isset($orderBy)) {
|
if (isset($orderBy)) {
|
||||||
$orderBy = urldecode($orderBy);
|
$orderBy = urldecode($orderBy);
|
||||||
$ntable->orderBy = $orderBy;
|
$ntable->orderBy = $orderBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($page) && $page!=='' ) $ntable->currentPage = (int) $page;
|
if ( isset($page) && $page!=='' ) $ntable->currentPage = (int) $page;
|
||||||
|
|
||||||
|
|||||||
@@ -338,8 +338,13 @@ class propelTable
|
|||||||
$this->tpl->newBlock( "headers" );
|
$this->tpl->newBlock( "headers" );
|
||||||
$sortOrder = (((isset( $this->aOrder[$this->fields[$r]['Name']] )) && ($this->aOrder[$this->fields[$r]['Name']] === 'ASC')) ? 'DESC' : 'ASC');
|
$sortOrder = (((isset( $this->aOrder[$this->fields[$r]['Name']] )) && ($this->aOrder[$this->fields[$r]['Name']] === 'ASC')) ? 'DESC' : 'ASC');
|
||||||
$sortOrder = (((isset( $this->aOrder[$this->fields[$r]['Name']] )) && ($this->aOrder[$this->fields[$r]['Name']] === 'DESC')) ? '' : $sortOrder);
|
$sortOrder = (((isset( $this->aOrder[$this->fields[$r]['Name']] )) && ($this->aOrder[$this->fields[$r]['Name']] === 'DESC')) ? '' : $sortOrder);
|
||||||
$this->style[$r]['href'] = $this->ownerPage . '?order=' . ($sortOrder !== '' ? (G::createUID( '', $this->fields[$r]['Name'] ) . '=' . $sortOrder) : '') . '&page=' . $this->currentPage;
|
if ($this->style[$r]['titleVisibility'] != '0') {
|
||||||
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , "' . $sortOrder . '");return false;';
|
$this->style[$r]['href'] = $this->ownerPage . '?order=' . ($sortOrder !== '' ? (G::createUID( '', $this->fields[$r]['Name'] ) . '=' . $sortOrder) : '') . '&page=' . $this->currentPage;
|
||||||
|
$this->style[$r]['onsort'] = $this->id . '.doSort("' . G::createUID( '', $this->fields[$r]['Name'] ) . '" , "' . $sortOrder . '");return false;';
|
||||||
|
} else {
|
||||||
|
$this->style[$r]['href'] = '#';
|
||||||
|
$this->style[$r]['onsort'] = 'return false;';
|
||||||
|
}
|
||||||
if (isset( $this->style[$r]['href'] )) {
|
if (isset( $this->style[$r]['href'] )) {
|
||||||
$this->tpl->assign( "href", $this->style[$r]['href'] );
|
$this->tpl->assign( "href", $this->style[$r]['href'] );
|
||||||
}
|
}
|
||||||
@@ -492,7 +497,7 @@ class propelTable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Hidden titles
|
//Hidden titles
|
||||||
if (! (strpos( ' linknew button endgrid2 ', ' ' . $this->fields[$r]['Type'] . ' ' ) === false)) {
|
if (! (strpos( ' linknew button link endgrid2 ', ' ' . $this->fields[$r]['Type'] . ' ' ) === false)) {
|
||||||
$this->style[$r]['titleVisibility'] = '0';
|
$this->style[$r]['titleVisibility'] = '0';
|
||||||
}
|
}
|
||||||
//Align titles
|
//Align titles
|
||||||
|
|||||||
@@ -31,4 +31,5 @@
|
|||||||
|
|
||||||
<GET_UID type="link" colWidth="40" value="UID" link="#" onclick="msgBox('UID: '+@QDBS_UID, 'info');return false;"/>
|
<GET_UID type="link" colWidth="40" value="UID" link="#" onclick="msgBox('UID: '+@QDBS_UID, 'info');return false;"/>
|
||||||
|
|
||||||
|
|
||||||
</dynaForm>
|
</dynaForm>
|
||||||
|
|||||||
Reference in New Issue
Block a user