2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>

* include/functions.php: format_for_graph is now much simpler and uses 
	format_numeric.
	
	* include/functions_db.php: give_note_author, give_incident_author, 
	dame_numero_notas, borrar_incidencia, event_insert and 
	return_event_description are now in their respective functions_*.php files
	but under a new name. Fixed delete_agent transaction error detection
	
	* include/functions_events.php: Added get_event_description and
	create_event (formerly return_event_description and event_insert)
	
	* include/functions_html.php: print_timestamp attributes should be default
	empty, not required. Added print_username for a consistent username print
	
	* operation/agentes/ver_agente.php: Function renaming (create_event)
	
	* operation/incidents/incident.php: Partial rewrite. Uses new functions. 
	Also added some of feature request #2264838
	
	* operation/incidents/incident_detail.php: Partial rewrite. Uses new 
	functions. Added some of feature request #2264838 functionality.
	
	* operation/incidents/incident_search.php, 
	operation/incidents/incident_statistics.php: Minor style update
	
	* pandoradb.sql: New tincidencia and tnota layout. No use for tnota_inc
	
	* include/functions_incidents.php: All incidents functions. Documentation
	will be online soon. Also includes an upgrade mechanism for SVN users. 
	Mechanism should be removed for a stable version and integrated into 
	install/upgrade tool.

	* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1286 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
guruevi 2008-12-10 20:15:47 +00:00
parent ff37d1e362
commit 7d49c1e929
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2008-12-10 Evi Vanoost <vanooste@rcbi.rochester.edu>
* lib/PandoraFMS/DB.pm: New table layout doesn't require timestamp anymore
2008-12-03 Sancho Lerena <slerena@artica.es> 2008-12-03 Sancho Lerena <slerena@artica.es>

View File

@ -1536,8 +1536,7 @@ sub pandora_create_incident (%$$$$$$$) {
my $status = $_[5]; my $status = $_[5];
my $origin = $_[6]; my $origin = $_[6];
my $id_group = $_[7]; my $id_group = $_[7];
my $my_timestamp = &UnixDate("today","%Y-%m-%d %H:%M:%S"); my $sql = "INSERT INTO tincidencia (inicio, titulo, descripcion, origen, estado, prioridad, id_grupo) VALUES (NOW(), '$title', '$text', '$origin', $status, $priority, $id_group)";
my $sql = "INSERT INTO tincidencia (inicio, actualizacion, titulo, descripcion, origen, estado, prioridad, id_grupo) VALUES ('$my_timestamp', '$my_timestamp', '$title', '$text', '$origin', $status, $priority, $id_group)";
$dbh->do($sql); $dbh->do($sql);
} }