Default UserPref values in a gadget are not rendered.
-----------------------------------------------------
Key: SHINDIG-1262
URL: https://issues.apache.org/jira/browse/SHINDIG-1262
Project: Shindig
Issue Type: Bug
Components: PHP
Affects Versions: 1.1-BETA5
Environment: RedHat 5.3, Apache 2.2, PHP 5.2
Reporter: James McIninch
Priority: Minor
Fix For: 1.1-RC1
Refer to SHINDIG-175.
The problem is patched in the Java version, but not PHP.
Sample gadget:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Hello" description="An example of a simple gadget"
author="JDM" />
<UserPref name="firstname" display_name="Your name" datatype="string"
default_value="stranger" />
<Content type="html">
<![CDATA[
Hello, <span id="placeholder">name goes here</span>!
<script type="text/javascript">
var prefs = new gadgets.Prefs();
var name = prefs.getString("firstname");
document.getElementById("placeholder").innerHTML = name;
</script>
]]>
</Content>
</Module>
Displays "Hello, !" when it should display "Hello, stranger!"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.