Просмотр исходного кода

fixed TableAjax load more functions only after success edit

Piotr Labudda 9 лет назад
Родитель
Сommit
7961369705
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      SE/se-lib/TableAjax.php

+ 2 - 3
SE/se-lib/TableAjax.php

@@ -4401,6 +4401,8 @@ jQuery(document).ready(function(){
 				$response->msg = "Nie wprowadzono żadnych zmian";
 			}
 			$response->record = $acl->getItem($primaryKey);
+			$rowFunList = $this->getMoreFunctionsCell(array('primary_key'=>$primaryKey, 'record'=>$response->record));
+			if (!empty($rowFunList)) $response->rowFunctions = $rowFunList;
 		}
 		catch (Exception $e) {
 			$response->type = 'error';
@@ -4408,9 +4410,6 @@ jQuery(document).ready(function(){
 			$response->msg .= $e->getMessage();
 		}
 
-		$rowFunList = $this->getMoreFunctionsCell(array('primary_key'=>$primaryKey, 'record'=>$response->record));
-		if (!empty($rowFunList)) $response->rowFunctions = $rowFunList;
-
 		return $response;
 	}