Ticket #548 (closed Bug: fixed)

Opened 6 months ago

Last modified 6 months ago

Forge Groups fail to render with a custom view.

Reported by: tterragcnoom Owned by: PugFish
Priority: minor Milestone: 2.1.2
Component: Modules:Forge Version: SVN HEAD
Keywords: forge custom view groups Cc: garrett@…

Description

When using a custom view with forge->render(), ex:

$form->render('custom/view', TRUE)

Groups cause an error because they don't have the method error_messages:

Forge_Core->call( error_messages ) modules/forge/libraries/Forge.php [246]: Form_Group->error_messages( ) application/views/launchpad/users/new_edit.php [9]: Forge_Core->render( launchpad/users/form, 1 ) system/libraries/Controller.php [69]: include( application/views/launchpad/users/new_edit.php )

Change History

  Changed 6 months ago by tterragcnoom

  • cc garrett@… added

follow-up: ↓ 3   Changed 6 months ago by Shadowhand

  • keywords forge custom view groups added
  • status changed from new to closed
  • resolution set to invalid

You need to handle groups specially in your custom view, like the default Forge view does.

in reply to: ↑ 2   Changed 6 months ago by tterragcnoom

Replying to Shadowhand:

You need to handle groups specially in your custom view, like the default Forge view does.

My view can be completely empty and this error comes up, i.e. when setting the data array for the custom view it fails, before the view is even rendered. I may be missing something here though...

  Changed 6 months ago by PugFish

  • status changed from closed to reopened
  • resolution deleted

  Changed 6 months ago by PugFish

  • owner changed from Shadowhand to PugFish
  • status changed from reopened to new

  Changed 6 months ago by PugFish

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

Fixed in r2460

Note: See TracTickets for help on using tickets.