Skip to content

Instantly share code, notes, and snippets.

@suin
Created April 26, 2012 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suin/2496086 to your computer and use it in GitHub Desktop.
Save suin/2496086 to your computer and use it in GitHub Desktop.
$ git diff templates/profile_inc_data_edit.html
diff --git a/html/modules/profile/templates/profile_inc_data_edit.html b/html/modules/profile/templates/profile_inc_data_edit.html
index a354763..657a917 100644
--- a/html/modules/profile/templates/profile_inc_data_edit.html
+++ b/html/modules/profile/templates/profile_inc_data_edit.html
@@ -21,7 +21,7 @@
<{elseif $def->get('type')=="selectbox"}>
<select name="<{$def->getShow('field_name')}>" id="legacy_xoopsform_<{$def->getShow('field_name')}>">
<{foreach item=option from=$def->mFieldType->getOption($def)}>
- <option value="<{$option}>"<{if $profile->get($def->getShow('field_name'))==$option}> selected="selected"<{/if}>><{$option}></option>
+ <option value="<{$option}>"<{if $profileForm->get($def->getShow('field_name'))==$option}> selected="selected"<{/if}>><{$option}></option>
<{/foreach}>
</select>
<{elseif $def->get('type')=="uri"}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment