Error: | Undefined property: app_grid_sec_users_groups_xls::$group

Scriptcase version: 9.3.008

Module: Security -> Group / users

Step to reproduce:

In the Scriptcase IDE. [LIST=1]

  • Create new project and create new database.
  • Create security applications using the helper via menu [B]Modules -> Security [/B]
  • Choose [B]Group [/B]as [B]Security Type[/B] [/LIST] Generate source and run the [B]application[/B]. [LIST=1]
  • Login
  • Select menu [B]Security -> Groups / Applications[/B]
  • Click [B]Export [/B]on top of the screen
  • Click [B]Save Selected This will enable the export button in the said application[/B] [/LIST][LIST=1]
  • Go to menu [B]Security -> Groups / users[/B]
  • Click [B]Search[/B]
  • Click [B]Export [/B]and chose [B]Word[/B]. Output ok
  • Click [B]Export [/B]and chose [B]Excel [/B]or [B]XML [/B]or [B]CSV[/B]. [B]Error [/B]prompted. [/LIST]

    Rootcause:

    This block of code were executed quite late in the application.

    
              $this->group = $Busca_temp['group'];
              $tmp_pos = strpos($this->group, "##@@");
              if ($tmp_pos !== false && !is_array($this->group))
              {
                  $this->group = substr($this->group, 0, $tmp_pos);
              }
    
    

    Causing the below statement failed to evaluate the value of the property $this->group

    
    $this->nm_where_dinamico = "WHERE login IN ( SELECT login FROM sc_sec_users_groups WHERE group_id = ".$this->group ." )";
    
    

    013.png

  • Hello, @firadaboss

    We really appreciate your contact.

    I’m doing some tests about the related issue. (Replied also in the email you’ve sent.)

    Hello, @firadaboss

    Sorry for the delay.

    Replied to you on the ticket you’ve opened.

    The bug was confirmed and send to our development team.

    You’ll be contacted when the fix gets available for download.