Changeset - f19131615eda
[Not reviewed]
0 1 0
Jan Kaluza - 10 years ago 2015-11-13 07:52:13
jkaluza@redhat.com
Add form and response declaration removed by a mistake
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settingsadhoccommand.cpp
Show inline comments
 
@@ -55,12 +55,15 @@ boost::shared_ptr<Swift::Command> SettingsAdHocCommand::getForm() {
 
		boost::shared_ptr<Swift::Form> form(new Swift::Form());
 
		FormUtils::addTextFixedField(form, "You are not registered.");
 
		response->setForm(form);
 
		return response;
 
	}
 

	
 
	boost::shared_ptr<Swift::Command> response(new Swift::Command("settings", m_id, Swift::Command::Executing));
 
	boost::shared_ptr<Swift::Form> form(new Swift::Form());
 

	
 
	std::string value;
 
	int type = (int) TYPE_BOOLEAN;
 

	
 
	value = "1";
 
	m_storageBackend->getUserSetting(user.id, "enable_transport", type, value);
 
	FormUtils::addBooleanField(form, "enable_transport", value, "Enable transport");
0 comments (0 inline, 0 general)