Skip to content

Conversation

@solewniczak
Copy link
Contributor

Action allows create struct lookup entries using bureaucracy form. Syntax:

action struct_lookup ... can contain any number of struct_field or struct_schema. Data will be saved to respective lookup schemas.

Action allows create struct lookup entries using bureaucracy form. Syntax:
  <form>
  action struct_lookup
  ...
  </form>

<form> can contain any number of struct_field or struct_schema. Data will be saved to respective lookup schemas.
@solewniczak
Copy link
Contributor Author

Works well with #356

if (!$access instanceof AccessTableLookup) continue;

if(!$access->getSchema()->isEditable()) {
throw new StructException('lookup save error: no permission for schema');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does throwing a Struct Exception in the bureaucracy context work? I don't think bureaucracy is catching exceptions. Instead a msg() should be shown and false be returned.

@splitbrain splitbrain merged commit f38cc29 into cosmocode:master Jan 9, 2018
@splitbrain
Copy link
Member

can you update the docs again? thanks!

@solewniczak
Copy link
Contributor Author

Ok. No problem.

@solewniczak solewniczak deleted the feature-bureaucracy-action-lookup branch January 9, 2018 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants