CC-5405: When editing a single show instance from a repeating series, should not create a new cc_show

Create a new cc_show_day rule instead of a new cc_show
This commit is contained in:
drigato 2013-11-28 17:17:00 -05:00
parent 4253608948
commit a465b5a770
6 changed files with 181 additions and 49 deletions

View file

@ -172,16 +172,16 @@ SQL;
$show->delete();
}
public function resizeShow($deltaDay, $deltaMin)
public function resizeShow($deltaDay, $deltaMin, $instanceId)
{
$con = Propel::getConnection();
if ($deltaDay > 0) {
return _("Shows can have a max length of 24 hours.");
}
$utc = new DateTimeZone("UTC");
$nowDateTime = new DateTime("now", $utc);
$showInstances = CcShowInstancesQuery::create()