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

Cdd rendered as checkbox #1408

Closed
ariouche opened this issue Mar 11, 2015 · 12 comments
Closed

Cdd rendered as checkbox #1408

ariouche opened this issue Mar 11, 2015 · 12 comments

Comments

@ariouche
Copy link

Hi,
I've got a cdd rendered as a checkbox. (under Data tab) the id field is set to a datatype = string ('paypal21') and not an integer and I've got that js error: Uncaught ReferenceError: paypal21 is not defined when cdd is updated.
I've changed the cdd to dropdown and the error disapears.

@jaanusnurmoja
Copy link

which id field you mean?
is paypal21 your cdd field name? If yes, then do you mean id field in the db table that was created for cdd checkbox (with name yourmaintable_repeat_paypal21) ?

@ariouche
Copy link
Author

here is a screenshot
cdd

@jaanusnurmoja
Copy link

ok, if paypal21 is one of the values, then your cdd field could not be an integer because value paypal21 is a string.

@jaanusnurmoja
Copy link

And the field gateway id in list association_prestataire_paiement that the cdd points to is then probably a varchar, not integer

@ariouche
Copy link
Author

I know but even if the value was not an integer (this is intentional), the cdd was working on 3.2.

@jaanusnurmoja
Copy link

Thanks, I first misunderstood your issue. Looks like a bug.
Could you look at your database (in phpmyadmin or whatever db client)
There should still be the database table that was autocreated after you created CDD as checkboxes. Before it (just in case) set your CDD back to the checkbox mode.
The table name should be [yourparenttablename]_repeat_[yourcddfieldname] (sorry, I don't know your actual table and cdd field name)
Then look at the table structure and see which type is there the field [yourcddfieldname].
If it is e.g varchar then it's correct. If INT, then not.

@ariouche
Copy link
Author

it's a varchar(50)
cdd2

@jaanusnurmoja
Copy link

Double check all your settings, update your site with the latest code etc etc
I could not replicate your issue. No idea whether the developers (Rob & Hugh) could. It works for me.
See my test page. "Omavalitsused" both values and labels are coming from the same varchar field - that means the corresponding field of repeat table is also varchar.
http://www.nurmoja.net.ee/j3/cdd-value-as-string

@cheesegrits
Copy link
Member

Can we discuss this in the forums? We try to keep all "discussion" going there, for actually identifying bugs vs setup issues, etc, and only use the issue tracking once an actual code bug has been identified. Just a matter of not diluting our effort, so support folk only have to look in one place to keep up with the day to day support, and keep the issue tracking as something we use on the actual development / bug fixing side.

@cheesegrits
Copy link
Member

Once you've opened the forum thread (or if you already have one), just paste the URL in here.

@ariouche
Copy link
Author

@pollen8
Copy link
Member

pollen8 commented Mar 23, 2015

Should be fixed with 5b4e5c7

@pollen8 pollen8 closed this as completed Mar 23, 2015
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

4 participants