Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Error thrown if all tabs are deleted #4

Open
andrewminton opened this issue Oct 17, 2013 · 0 comments
Open

Database Error thrown if all tabs are deleted #4

andrewminton opened this issue Oct 17, 2013 · 0 comments

Comments

@andrewminton
Copy link

Just running through using this extension like our good old competent clients would and I get this error if all tabs are deleted in an entry:

Symphony Warning: Invalid argument supplied for foreach()

An error occurred in
C:\wamp\www\2.3.3\extensions\tabbed_textarea\fields\field.tabbed_textarea.php
around    line 298

293 );
294
295 //Check if length of tabs array is greater than 0
296
297 // Store new tabs:
298 foreach($data['tabs'] as $tabNr => $tab)
299 {
300 $content = $data['content'][$tabNr];
301 $result['tab'][] = $tab;
302 $result['value'][] = $content;

Could be Ckeditor related due to the fact that the underlying div of the first/remaining instance isn't removed from the dom. But be worth investigating.

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

No branches or pull requests

1 participant