Current time: 05-23-2024, 11:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
[Add User] -- insert a control
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #3
RE: [Add User] -- insert a control
You need to execute the SQL commands (at least your egw_ctrl - sql commands)
see some line below:
($rs, $rdata) = doSQL($sql);

but I don't know why your version does not reset the status to "ok"...

I'd do it maybe like this:
Code:
... line 3883... (version from may 29)
    if ($dmn_status eq 'toadd') {

        $rs = dmn_add_data($entry);

        $timestamp = time();

        if ($rs == 0 && set_dmn_egw($dmn_id)) {

            $sql = "update domain set domain_status='ok' where domain_id = $dmn_id";

        } else {

            my ($sub_name, $msg) = split(/$main::el_sep/, pop_el(\@main::el));

            $msg =~ s/\'/\\\'/g;

            $sql = "update domain set domain_status='$sub_name | $msg' where domain_id = $dmn_id;";

        }

        ($rs, $rdata) = doSQL($sql);

        return $rs if ($rs != 0);
...

and then create your own function (set_dmn_egw) which do the egw-thing...
Your function should be executed if ($rs == 0) and if your function does ends with a "true" then the status should be set to 'ok' - else you can setup a msg...

Hope you can manage this...

/Joximu
06-08-2007 09:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Add User] -- insert a control - Ryuuku - 06-07-2007, 06:57 PM
RE: [Add User] -- insert a control - joximu - 06-08-2007 09:11 PM
RE: [Add User] -- insert a control - BeNe - 06-13-2007, 03:32 AM
RE: [Add User] -- insert a control - BeNe - 06-14-2007, 06:01 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)