ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10923 for OpenPNE3/trunk/apps


Ignore:
Timestamp:
Mar 2, 2009, 4:30:39 PM (14 years ago)
Author:
ebihara
Message:

#3574:fixed the form parts doesn't display global error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsForm.php

    r10695 r10923  
    1717<?php
    1818$forms = ($options['form'] instanceof sfForm) ? array($options['form']) : $options['form'];
     19
    1920foreach ($forms as $form)
    2021{
     22  if ($form->hasGlobalErrors())
     23  {
     24    echo '<tr>'."\n"
     25      . '<td colspan="2">'."\n";
     26    echo $form->renderGlobalErrors();
     27    echo '</td>'."\n"
     28      . '</tr>'."\n";
     29  }
     30
    2131  foreach ($form as $field)
    2232  {
Note: See TracChangeset for help on using the changeset viewer.