Development

#925 ([PATCH] escaping and list issue in admin generator)

You must first sign up to be able to contribute.

Ticket #925 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

[PATCH] escaping and list issue in admin generator

Reported by: andreas Assigned to:
Priority: minor Milestone: 1.0.0
Component: Version: 0.7.X
Keywords: escaping admin generator Cc:
Qualification:

Description

list:
      peer_method:    doSelectJoinAllExceptFrontendUser
      title:          Radius Users
      display:        [ =username, bundle, tariff, comment ]

bundleId and tariffId are foreign keys in the schmema. With escaping turned off, both show the Strings supplyed by the __toString() Method. If you turn escaping on, the output is: Object id #xxx. Seems to be like Ticket #886, some view component which does not expect an decorator...

Attachments

toString.patch (0.8 kB) - added by nicolas on 01/04/07 13:51:00.
Attached a patch that fixed the problem for me, not thoroughly tested.

Change History

01/04/07 13:51:00 changed by nicolas

  • attachment toString.patch added.

Attached a patch that fixed the problem for me, not thoroughly tested.

01/04/07 13:51:37 changed by nicolas

  • summary changed from escaping and list issue in admin generator to [PATCH] escaping and list issue in admin generator.

Attached a patch that fixed the problem for me, not thoroughly tested.

01/05/07 10:04:47 changed by fabien

  • milestone set to 1.0.0.

01/05/07 10:05:07 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [3161]) fixed escaping and list issue in admin generator (closes #925, #1261)

01/05/07 21:38:43 changed by nicolas

Nice ! But I think the var $name is not declared, it should be get_class($this->value) instead in :

      throw new sfException(sprintf('Object of class "%s" cannot be converted to string (Please create a __toString() method)', get_class($name))); 

01/05/07 21:39:33 changed by nicolas

  • status changed from closed to reopened.
  • resolution deleted.

01/08/07 09:52:06 changed by fabien

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [3183]) fixed typo (closes #925)