developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#500 closed enhancement (fixed)

passage a la ligne dans firebug

Reported by: Lipki Owned by: Lipki
Priority: low Milestone: Jelix 1.0.3
Component: jelix:core response Version: 1.0.2
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

lorsque l'on envoie des logs dans firebug, tous les \r et \n sont supprimés, ce qui nous donne ce genre de bouilis.

log default: array ( 1 => array ( 'id' => '276', 'pr' => 
cDaoRecord_jpanier_Jx_di_offres_Jx_mysql::__set_state(array( 'id_offre' => '276', 
'label_offre' => 'A', 'actif_offre' => 'oui', 'note_offre' => 
'Offre promo du mois 01/2008', 'remise_offre' => '0', 'promo_offre' => 'oui', 
'fpo_offre' => 'non', 'prix_offre' => '82.00', )), 'qt' => 2, ), )

Un petit correction nous permettrais d'avoir ceci.

log default: array (
	1 => 
	array ( 
		'id' => '276', 
		'pr' => 
		cDaoRecord_jpanier_Jx_di_offres_Jx_mysql::__set_state(array( 
			'id_offre' => '276', 
			'label_offre' => 'A', 
			'actif_offre' => 'oui', 
			'note_offre' => 'Offre promo du mois 01/2008', 
			'remise_offre' => '0', 
			'promo_offre' => 'oui', 
			'fpo_offre' => 'non', 
			'prix_offre' => '82.00', 
		)), 
		'qt' => 2, 
	), 
)

La modification dans le diff.

Attachments (2)

retour_firebug.patch (2.8 KB) - added by Lipki 11 years ago.
firebug_caracteres_echapes.diff (1.6 KB) - added by Lipki 11 years ago.

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by Lipki

comment:1 Changed 11 years ago by Lipki

  • Owner changed from laurentj to Lipki
  • review set to review?
  • Status changed from new to assigned

comment:2 Changed 11 years ago by Lipki

  • Type changed from bug to enhancement

comment:3 Changed 11 years ago by Lipki

pourquoi a tu choisit var_export(), plutôt que print_r() ou var_dump() pour les dump d'objet ? (simple curiosité)

comment:4 Changed 11 years ago by laurentj

  • review changed from review? to review+

var_export fait un export sous forme de code PHP. C'est donc plus compréhensible (enfin je trouve).

sinon ok pour le patch.

comment:5 Changed 11 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

patch inclus dans la branche 1.0.x et le trunk. svn 811

Merci !

comment:6 Changed 11 years ago by Lipki

  • Resolution fixed deleted
  • Status changed from closed to reopened

Actuellement les guillemet sont échappés dans la console firebug.

ce patch corrige cette "oubli"

Je ne pense pas que cela vaut un nouveau ticket.

Changed 11 years ago by Lipki

comment:7 Changed 11 years ago by laurentj

  • Resolution set to fixed
  • Status changed from reopened to closed

à chaque nouveau bug, nouveau ticket s'il te plait.

comment:8 Changed 11 years ago by Lipki

Je savais que tu aller dire ça

Note: See TracTickets for help on using tickets.