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

Repeated section of length of zero #266

Open
3 of 16 tasks
ssimo3lsuhsc opened this issue Feb 14, 2017 · 5 comments
Open
3 of 16 tasks

Repeated section of length of zero #266

ssimo3lsuhsc opened this issue Feb 14, 2017 · 5 comments

Comments

@ssimo3lsuhsc
Copy link

Hello.
My name is Stuart Simon. I am trying to write a plugin that adds a meta box that allows users to add files with descriptions to a post type. What I need is to allow my repeating group to have zero length. I cannot set any of the fields in my repeating group to be required because at least one record is always there. The key is that this is bad data design. I don't want meaningless records clogging my database.
I want to use your plugin because it allows adding custom attributes to its fields. I don't remember if nested repeatables are supported, but I thought of plugins other than CMB2 that allow me to set field attributes directly. ## Type of issue

  • Bug report.
  • Suggestion.

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate,
  • The issue still exists against the latest dev branch.
  • This is not a usage question (Those should be directed to the community).
  • I have attempted to find the simplest possible steps to reproduce the issue.

Steps to reproduce the issue (for Bug report)

Expected behavior and actual behavior

When I follow those steps, I see...

I was expecting...

Environment

Browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer

Operating System

  • Windows
  • Mac OS X
  • Linux
  • Mobile

Versions

  • Admin Page Framework version:
  • WordPress version:
  • PHP version:

Isolating the problem

  • This bug happens on the demo page.
  • The bug happens consistently across all tested browsers.
  • This bug happens with clean install (with the default theme and no plugin except the problematic one).
@michaeluno
Copy link
Owner

Hi Stuart,

What I need is to allow my repeating group to have zero length.

I don't understand this part. Can you elaborate?

@ssimo3lsuhsc
Copy link
Author

ssimo3lsuhsc commented Feb 20, 2017 via email

@ssimo3lsuhsc
Copy link
Author

ssimo3lsuhsc commented Feb 21, 2017 via email

@ssimo3lsuhsc
Copy link
Author

ssimo3lsuhsc commented Mar 7, 2017 via email

@michaeluno
Copy link
Owner

Hi Stuart,

Sorry for the late response.

It sounds like a good option to have. However, I cannot guarantee when it is implemented.

As for the email you sent via the contact form, indeed I have missed it. I'll respond to it in email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants