Changeset 12369
- Timestamp:
- 10/26/08 01:29:24 (5 years ago)
- Files:
-
- branches/1.1/lib/widget/sfWidgetFormSchema.class.php (modified) (1 diff)
- branches/1.2/lib/widget/sfWidgetFormSchema.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/widget/sfWidgetFormSchema.class.php
r11961 r12369 454 454 $format = $this->getNameFormat(); 455 455 456 if ('[%s]' == substr($format, -4)) 457 { 458 if (preg_match('/^(.+?)\[(.+)\]$/', $name, $match)) 459 { 460 $name = sprintf('%s[%s][%s]', substr($format, 0, -4), $match[1], $match[2]); 461 } 462 else 463 { 464 $name = sprintf('%s[%s]', substr($format, 0, -4), $name); 465 } 456 if ('[%s]' == substr($format, -4) && preg_match('/^(.+?)\[(.+)\]$/', $name, $match)) 457 { 458 $name = sprintf('%s[%s][%s]', substr($format, 0, -4), $match[1], $match[2]); 466 459 } 467 460 else if (false !== $format) branches/1.2/lib/widget/sfWidgetFormSchema.class.php
r11992 r12369 548 548 $format = $this->getNameFormat(); 549 549 550 if ('[%s]' == substr($format, -4)) 551 { 552 if (preg_match('/^(.+?)\[(.+)\]$/', $name, $match)) 553 { 554 $name = sprintf('%s[%s][%s]', substr($format, 0, -4), $match[1], $match[2]); 555 } 556 else 557 { 558 $name = sprintf('%s[%s]', substr($format, 0, -4), $name); 559 } 550 if ('[%s]' == substr($format, -4) && preg_match('/^(.+?)\[(.+)\]$/', $name, $match)) 551 { 552 $name = sprintf('%s[%s][%s]', substr($format, 0, -4), $match[1], $match[2]); 560 553 } 561 554 else if (false !== $format)