[-] MO : fixed bug #PSCFV-2853 - bug in the blocklink : you can not update the title block or edit links.
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16076 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -391,7 +391,7 @@ class BlockLink extends Module
|
||||
{
|
||||
$this->_html .= '
|
||||
<script type="text/javascript">
|
||||
var currentUrl = \''.Tools::safeOutput(AdminController::$currentIndex.'&configure='.$this->name).'\';
|
||||
var currentUrl = \''.Tools::safeOutput($_SERVER['REQUEST_URI']).'\';
|
||||
var token=\''.$token.'\';
|
||||
var links = new Array();';
|
||||
foreach ($links as $link)
|
||||
@@ -429,8 +429,8 @@ class BlockLink extends Module
|
||||
<td>'.Tools::safeOutput($link['text_'.$this->context->language->id]).'</td>
|
||||
<td>'.Tools::safeOutput($link['url']).'</td>
|
||||
<td>
|
||||
<img src="../img/admin/edit.gif" alt="" title="" onclick="linkEdition('.(int)$link['id'].')" style="cursor: pointer" />
|
||||
<img src="../img/admin/delete.gif" alt="" title="" onclick="linkDeletion('.(int)$link['id'].')" style="cursor: pointer" />
|
||||
<a href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&id_link='.(int)$link['id'].'"><img src="../img/admin/edit.gif" alt="" title="" style="cursor: pointer" /></a>
|
||||
<a href="'.Tools::safeOutput($_SERVER['REQUEST_URI']).'&id='.(int)$link['id'].'&delete_link=1"><img src="../img/admin/delete.gif" alt="" title="" style="cursor: pointer" /></a>
|
||||
</td>
|
||||
</tr>';
|
||||
$i = 0;
|
||||
|
||||
Reference in New Issue
Block a user