Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: frapi/frapi
base: c97acd7319
...
head fork: frapi/frapi
compare: console
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
View
14 src/frapi/admin/application/modules/default/models/Action.php
@@ -109,16 +109,18 @@ public function update(array $data, $id)
'route' => $data['use_custom_route'] ? $data['route'] : null
);
-
- if (isset($data['param']) && isset($data['required'])) {
- $params = array_combine($data['param'], $data['required']);
-
+ if (isset($data['param'])) {
+ $params = $data['param'];
$values['parameters'] = array();
foreach ($params as $param => $value) {
+ if (strlen(trim($data['param'][$param])) <= 0) {
+ continue;
+ }
+
$values['parameters']['parameter'][] = array(
- 'name' => $param,
- 'required' => ($value == 'on' ? '1' : '0'),
+ 'name' => $data['param'][$param],
+ 'required' => (isset($data['required'][$param]) ? '1' : '0'),
);
}
}
View
2  src/frapi/admin/console/console.php
@@ -55,7 +55,7 @@
'sync-actions' => 'ActionController::syncAction',
'exit' => '',
);
-
+ini_set('display_errors', 'On');
$command = '';
while (true) {

No commit comments for this range

Something went wrong with that request. Please try again.