Page 1 of 1

CTL Module Maker - can't edit module

Posted: Mon Dec 14, 2009 6:16 pm
by jocando
Hello

I'm trying to add a couple of fields to a module I made with CTL Module Maker (see post http://forum.cmsmadesimple.org/index.ph ... 553.0.html)

I've followed the instructions, it seems to add the fields OK but something's not right.  If I add data to the new field, it doesn't save. If I go back in to look again, the field has gone blank.

In fact, if I try to add data to *any* field (not just the new ones) it doesn't save the change - it reverts back to the old data.

Any idea why this might be?  I've had a look at the php files and can't see anything obvious.

Many thanks

Jo

Re: CTL Module Maker - can't edit module

Posted: Tue Jan 18, 2011 4:14 pm
by brentnl
I've got exactly the same problem!

Did you come up with a solution yet?

Re: CTL Module Maker - can't edit module

Posted: Tue Jan 18, 2011 6:04 pm
by jocando
No, sorry. I had to give up.

I'm kind of glad to know it isn't just me, though. Let me know if you get anywhere and sorry I can't be of any help.

Re: CTL Module Maker - can't edit module

Posted: Tue Jan 18, 2011 8:29 pm
by brentnl
It's oke.. I've reduced the problem to one file; named action.editb.php ... I had a backup of the old version of my module, and with the old version of action.editb.php the new module just worked fine with editing and adding entries.

Ofcourse the only bad thing is that this old file doesn't contain the new input fields... I've posted this problem also on the dutch cmsms forum, so if I got a reply overthere I'll let you know ;)

Re: CTL Module Maker - can't edit module

Posted: Wed Jan 19, 2011 8:01 am
by klenkes
I think the new CTLMM 2.0x still has no upgrade functionality. At least I can't find the function.
So if you edit your module and add new fields they are not created in the database table.

At this point you have to add them yourself.

--
Bernd

Re: CTL Module Maker - can't edit module

Posted: Wed Jan 19, 2011 9:18 am
by brentnl
But in my upgrade situation the database tables are created as well... so that isn't the issue...