1 (edited by Kalido 12/11/2009 10:00:53 pm)

Topic: RepGen 2.2 Bug Fix

Hello Joe,

in RepGen, if you try to go :

Account List [Run] ==> then next if you try to :

press the  Button [ Test the SQL Statement ], you will find a Bug.

And this is how I fix it in 2 steps :


1. Replace in : repgen_create.php ( line 203 #  )

from :
-------

$txt = "<input type='button' name='test_sel' value='".TEST_SEL.
    "' onclick=\"openWindow('".REPGENDIR."/repgen_test_sel.php"."', 'SQL');\" >";

to :
----

$txt = "<input type='button' name='test_sel' value='".TEST_SEL.
    "' onclick=\"openWindow('".REPGENDIR."/repgen_test_sel.php?var101=".$sql."', 'SQL');\" >";



2. Add in :    repgen_test_sel.php  ( line 22 # )

$sql =$_GET['var101']; 


So the Bug is fixed at this stage.
----------------------------------------------------------

But, If you enter a New SQL statement in the textarea & try to

press the  Button [ Test the SQL Statement ], you will find that now , the $sql

variable was not passed through ( var101 ) to the pop up window like if it treats

$sql = "".

Instead of that, if you press the [Page Definition for Strings], you will find

that the page is directed to a new page and $sql now is treated well.

I could not find the clue. Can you help resolving this bug please.



Regards,


Khaled

Re: RepGen 2.2 Bug Fix

Please download the file once again from the Website. the download file has been replaced.
The problem was that there were 2 javascript windows with the same name. This is now fixed and it works ok again.
The file creating the error was repgen_create.php

/Joe

Re: RepGen 2.2 Bug Fix

Nice & Efficient Work Joe.

khaled