Comments (7)
Good catch. PHP likes to treat the number zero as representing an empty value. This will fix it:
Edit line 370 of fields/field.dynamictextgroup.php that says
if (!empty($field[$i])) {
Change it to:
if (!empty($field[$i]) || $field[$i] == '0') {
I'll add this fix in the next commit. Feel free to close this when you can confirm the fix works. Thanks!
from dynamictextgroup.
Hey Brock,
Tried that but still get error.. something to do with required field checkbox I'm thinking. See my screen shot. http://dl.dropbox.com/u/670078/Screen%20shot%202011-09-30%20at%2009.42.50.png
I have the numeric field with a required checkbox. I'm using latest branch.
from dynamictextgroup.
It looks like you aren't using the latest dev version.
Version 2.0dev6
fixes the following issue...
Fixed validation pattern presets (backslashes weren't being escaped)
You can read me and Nils' discussion about this here; I'm pretty sure this is what's causing your problem.
That version also adds checkbox and radio button subfield types, so you'll be able to use those rather than doing the text input workaround you're using.
from dynamictextgroup.
Noted. Will update. 2.0dev5 in local install. Doh! (Slaphead)
from dynamictextgroup.
Haha no problem
from dynamictextgroup.
Will pull your branch locally and test while at the Symposium day2 tomorrow. A lot of singing praises for the work youce done here by the way. double kudos
from dynamictextgroup.
Wow... Thanks a lot, manβ I really appreciate that! So great to hear; very, very, inspiring! To be honest, I was a bit worried that nobody would use this thing...
I wish I was there!!
from dynamictextgroup.
Related Issues (15)
- Required field weirdness HOT 6
- Development branch, 2.3? HOT 6
- Renaming doesn't update element_name
- Unkown Column allow multiple HOT 1
- Referene to a missing js file in the code HOT 11
- Error on 2.3.2
- 'Add field' button doesn't work on 2.3.2
- Error with 2.3.3 Unknown column 'allow_multiple' in 'field list' HOT 1
- Validation errors HOT 2
- Adding Textarea to the list of fields? HOT 3
- Drag handle in field settings HOT 4
- Multiple Instance HOT 4
- field size weirdness HOT 6
- schema char limit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamictextgroup.