To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #536 (assigned defect)

Opened 18 months ago

Last modified 13 months ago

Add call to parent::configure() in aMediaImageForm.class.php

Reported by: spike Owned by: tboutell
Priority: minor Milestone: 1.5.2
Component: apostrophePlugin: Media Version: 1.5
Keywords: Cc: team@…
Symfony version: 1.4

Description

The only way to edit the behavior of aMediaImageForm is to override aMediaItemForm at the application level, because there is no i.e. BaseaMediaImageForm?. However, because aMediaImageForm overrides configure() but never calls parent::configure(), there is no hook into the configure method, so it isn't possible to change/unset widgets. For example, we want to de-clutter the image upload and edit form, so we want to do something like this in aMediaItemForm:

configure()
{

parent::configure();

unset($thisdescription?, $thiscategories?);

}

Solve this by putting a call to parent::configure() in aMediaImageForm::configure().

Change History

Changed 13 months ago by johnnyoffline

  • cc team@… added; tboutell, agilbert, dordille removed
  • version changed from 1.4 to 1.5
  • component changed from apostrophePlugin to apostrophePlugin: Media
  • milestone set to 1.5.1

Tom,

This sounds like an easy thing to do, could probably do it and close the ticket?

Changed 13 months ago by johnnyoffline

  • owner changed from agilbert to tboutell
  • status changed from new to assigned
Note: See TracTickets for help on using tickets.