// Fix shop association in admin on attributes page

This commit is contained in:
rMalie
2012-02-16 17:11:49 +00:00
parent a6df8429d9
commit cdc7356f54
4 changed files with 27 additions and 11 deletions
+2 -1
View File
@@ -714,6 +714,7 @@ class AdminControllerCore extends Controller
// Save and back to parent
if (Tools::isSubmit('submitAdd'.$this->table.'AndBackToParent'))
$this->redirect_after = self::$currentIndex.'&'.$this->identifier.'='.$parent_id.'&conf=4&token='.$token;
// Default behavior (save and back)
if (empty($this->redirect_after))
$this->redirect_after = self::$currentIndex.($parent_id ? '&'.$this->identifier.'='.$object->id : '').'&conf=4&token='.$token;
@@ -2275,7 +2276,7 @@ class AdminControllerCore extends Controller
* @param string $table
* @param int $id_object
*/
protected static function getAssoShop($table, $id_object = false)
protected function getAssoShop($table, $id_object = false)
{
$shop_asso = Shop::getAssoTables();
$group_shop_asso = GroupShop::getAssoTables();