|
@@ 1341-1347 (lines=7) @@
|
| 1338 |
|
$this->ui_page = array( $this->action ); |
| 1339 |
|
if ( 'add' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) { |
| 1340 |
|
$this->ui_page[] = 'form'; |
| 1341 |
|
if ( 'create' == $this->do && $this->save && !in_array( $this->do, $this->actions_disabled ) && !empty( $_POST ) ) { |
| 1342 |
|
$this->ui_page[] = $this->do; |
| 1343 |
|
$this->save( true ); |
| 1344 |
|
$this->manage(); |
| 1345 |
|
} |
| 1346 |
|
else |
| 1347 |
|
$this->add(); |
| 1348 |
|
} |
| 1349 |
|
elseif ( ( 'edit' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) || ( 'duplicate' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) ) { |
| 1350 |
|
$this->ui_page[] = 'form'; |
|
@@ 1371-1375 (lines=5) @@
|
| 1368 |
|
$this->save(); |
| 1369 |
|
$this->manage(); |
| 1370 |
|
} |
| 1371 |
|
elseif ( 'create' == $this->do && $this->save && !in_array( $this->do, $this->actions_disabled ) && !empty( $_POST ) ) { |
| 1372 |
|
$this->ui_page[] = $this->do; |
| 1373 |
|
$this->save( true ); |
| 1374 |
|
$this->manage(); |
| 1375 |
|
} |
| 1376 |
|
elseif ( 'view' == $this->action && !in_array( $this->action, $this->actions_disabled ) ) |
| 1377 |
|
$this->view(); |
| 1378 |
|
else { |