Browse Source

fixed TableAjax load more functions only after success edit

Piotr Labudda 9 years ago
parent
commit
7961369705
1 changed files with 2 additions and 3 deletions
  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->msg = "Nie wprowadzono żadnych zmian";
 			}
 			}
 			$response->record = $acl->getItem($primaryKey);
 			$response->record = $acl->getItem($primaryKey);
+			$rowFunList = $this->getMoreFunctionsCell(array('primary_key'=>$primaryKey, 'record'=>$response->record));
+			if (!empty($rowFunList)) $response->rowFunctions = $rowFunList;
 		}
 		}
 		catch (Exception $e) {
 		catch (Exception $e) {
 			$response->type = 'error';
 			$response->type = 'error';
@@ -4408,9 +4410,6 @@ jQuery(document).ready(function(){
 			$response->msg .= $e->getMessage();
 			$response->msg .= $e->getMessage();
 		}
 		}
 
 
-		$rowFunList = $this->getMoreFunctionsCell(array('primary_key'=>$primaryKey, 'record'=>$response->record));
-		if (!empty($rowFunList)) $response->rowFunctions = $rowFunList;
-
 		return $response;
 		return $response;
 	}
 	}