Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Saving bool values #45

Closed
gillesmk opened this issue Sep 12, 2014 · 4 comments
Closed

Saving bool values #45

gillesmk opened this issue Sep 12, 2014 · 4 comments

Comments

@gillesmk
Copy link

Hi,

I have an issue using saving boolean on translatable model when I use the update or create model static method with array data. Only a boolean value of the default lang seams to doesn't work and ignore the value I defined.

Do I missed something, or there is special trick for it.
Thanks for the good work, cheers

@jonasva
Copy link

jonasva commented Sep 13, 2014

Maybe it's an issue with your form? I had some problems with that in the past. Now I use this structure to catch the boolean from a form checkbox:

$user->activated = Input::has('activated') ? true : false;

@gillesmk
Copy link
Author

Hi,

Yes I did something similar, but the weird thing is that I have only the Issue with default locale. I’ll do more test and see if I did something wrong

Thanks for the tip I did know the Input::has method.

@dimsav
Copy link
Owner

dimsav commented Oct 9, 2014

@gillesmk can we close this?

@gillesmk
Copy link
Author

gillesmk commented Oct 9, 2014

Yes sorry,

I didn’t reply.

cheers

m k

Gilles Boisson
Web Developer
Manythink
Office: +32 2 559 01 64
Fax: +32 2 527 57 59
55 rue des Anciens Étangs
B-1190 Brussels
gilles@manythink.be (mailto:remy@manythink.be)
www.manythink.be (http://www.manythink.be)

Le jeudi 9 octobre 2014 à 03:01, Dimitri Savvopoulos a écrit :

@gillesmk (https://github.com/gillesmk) can we close this?


Reply to this email directly or view it on GitHub (#45 (comment)).

@dimsav dimsav closed this as completed Oct 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants