From 8e6e14ae3aeae3a0311a23d485604b07d685345e Mon Sep 17 00:00:00 2001
From: stronk7 <stronk7>
Date: Mon, 7 Sep 2009 08:05:01 +0000
Subject: [PATCH] fixed notice (and bug) introduced by MDL-19787

---
 admin/xmldb/actions/edit_field/edit_field.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/xmldb/actions/edit_field/edit_field.class.php b/admin/xmldb/actions/edit_field/edit_field.class.php
index 1711946239..9edc53717b 100644
--- a/admin/xmldb/actions/edit_field/edit_field.class.php
+++ b/admin/xmldb/actions/edit_field/edit_field.class.php
@@ -166,9 +166,9 @@ class edit_field extends XMLDBAction {
         $o.= '      <tr valign="top"><td><label for="menunotnull" accesskey="n">Not Null:</label></td>';
         $o.= '        <td colspan="2">' . $OUTPUT->select($select) . '</td></tr>';
     /// xmldb_field Sequence
+        $sequenceoptions = array (0 => $this->str['no'], 1 => 'auto-numbered');
         $select = html_select::make($sequenceoptions, 'sequence', $field->getSequence(), false);
         $select->nothingvalue = '';
-        $sequenceoptions = array (0 => $this->str['no'], 1 => 'auto-numbered');
         $o.= '      <tr valign="top"><td><label for="menusequence" accesskey="s">Sequence:</label></td>';
         $o.= '        <td colspan="2">' . $OUTPUT->select($select) . '</td></tr>';
     /// xmldb_field Default
-- 
2.39.5