Skip to content
Snippets Groups Projects
Verified Commit 35c514ea authored by Rin BAUDELET's avatar Rin BAUDELET
Browse files

Fix bug that make user unable to update the type of sticker

parent 48bce4c7
Branches master
No related tags found
No related merge requests found
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
<#if is_login == true> <#if is_login == true>
<form class="component-edit" onsubmit="return updateComponent(this, ${sticker.id}, '/students/${student.id}/stickers');"> <form class="component-edit" onsubmit="return updateComponent(this, ${sticker.id}, '/students/${student.id}/stickers');">
<label class="component-edit-selector"> <label class="component-edit-selector">
<select name="color"> <select name="type">
<#list sticker_types as type> <#list sticker_types as type>
<#if type.id == sticker.type.id> <#if type.id == sticker.type.id>
<option selected value="${type.color}">${type.description}</option> <option selected value="${type.id}">${type.description}</option>
<#else> <#else>
<option value="${type.color}">${type.description}</option> <option value="${type.id}">${type.description}</option>
</#if> </#if>
</#list> </#list>
</select> </select>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment