Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 1:48 am
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: BUGS Ticket support A2B 1.4 RC1
PostPosted: Wed Jun 10, 2009 8:20 pm 
Offline

Joined: Tue May 12, 2009 8:36 pm
Posts: 9
Estimados hay un problema con los tickets. Cuando el customer va a generar un ticket en
/customer/A2B_support.php el contenido del "SELECT COMPONENT" aparece vacío y cuando se trata de generar el ticket no se genera. El contenido del "SELECT COMPONENT" debería ser el contanido de la tabla cc_support_component. El archivo /customer/A2B_support.php tienen un error al cargar el contenido del select:

El archivo original dice lo siguiente:

<select NAME="component" class="form_input_select">
<?php
$DBHandle = DbConnect();
$instance_sub_table = new Table("cc_support_component", "*");
$QUERY = " activated = 1 AND (type_user = 0 OR type_user = 2)";
$return = null;
$return = $instance_sub_table -> Get_list($DBHandle, $QUERY, 0);
foreach ($return as $value) {
echo '<option class=input value=" '. $value["id"].'" > ' . $value["name"]. ' </option>' ;
}
?>
</select>


La línea $QUERY = " activated = 1 AND (type_user = 0 OR type_user = 2)"; hace referencia a type_user campo que no existe en las tablas. Por lo tanto en principio el problema se soluciona modificando dicha línea por:
$QUERY = " activated = 1";
No se cual era la idea con con el campo type_user.

De la misma manera cuando se trata de ver en la parte de /admin/ -> support -> components no aparece ninguno aunque la tabla tenga contenido. Es el mismo error en el archivo /admin/Public/form-data/FG_var_support_component.inc.
Se hace referencia al campo type_user que no existe.
Para solucionarlo hay que:

comentar esta linea
//$HD_Form -> AddViewElement(gettext("USER TYPE"),

Cambiar
//$HD_Form -> FieldViewElement ('id, name, activated,type_user, id_support ');
Por esta
$HD_Form -> FieldViewElement ('id, name, activated, id_support ');

Y comentar o borrar todo esto:
/*
$HD_Form -> AddEditElement (gettext("USER TYPE"),
"type_user",
'$value',
"SELECT",
"",
"",
"",
"list" , "", "", "", $user_type, "%1", "", gettext("Define who can use this component.") );

$HD_Form -> FieldEditElement ('name, activated, id_support,type_user');
*/


Espero haya sido de ayuda y que alguien en el foro lea español.
Cualquier cosa a las ordenes.
Saludos
Nico M


Top
 Profile  
 
 Post subject: Re: BUGS Ticket support A2B 1.4 RC1
PostPosted: Thu Jun 11, 2009 9:52 am 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
Gracias por este mensaje!

Nevertheless I will ask you to try to write in English so that most of the members can understand and react to your message.

I checked your issue and you are missing an sql update :
ALTER TABLE cc_support_component ADD type_user TINYINT NOT NULL DEFAULT '2';

it s inside the Database creation script but it has been added ulteriorly.

Saludos,
/Areski


Top
 Profile  
 
 Post subject: Re: BUGS Ticket support A2B 1.4 RC1
PostPosted: Thu Jun 11, 2009 4:00 pm 
Offline

Joined: Tue May 12, 2009 8:36 pm
Posts: 9
Ok
I will try to write in English but have patience :).

ALTER TABLE cc_support_component ADD type_user TINYINT NOT NULL DEFAULT '2';

Well as add to the table, but
¿ what is the utility of this field?

Thank you
Nico


Top
 Profile  
 
 Post subject: Re: BUGS Ticket support A2B 1.4 RC1
PostPosted: Thu Jun 11, 2009 4:03 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
it used to know to whom belongs the component!

Yours,
/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group