From bbe2daad55777974f10f98b8a8023c7e25fbd6d2 Mon Sep 17 00:00:00 2001
From: Dmitry Zaporozhan <dzaporozhan@productengine.com>
Date: Tue, 2 Mar 2010 11:34:14 +0200
Subject: [PATCH] Fixed normal bug EXT-5856 - "Auto renew each week" checkbox
 is displayed in the Classified Info from other resident profile. Hide
 auro_renew checkbox for avatar classifieds and showing for agent classifirds.

--HG--
branch : product-engine
---
 indra/newview/llpanelclassified.cpp           |  2 ++
 .../default/xui/en/panel_classified_info.xml  | 20 +++++++++----------
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/indra/newview/llpanelclassified.cpp b/indra/newview/llpanelclassified.cpp
index b4c13da91ef..f891a9fba26 100644
--- a/indra/newview/llpanelclassified.cpp
+++ b/indra/newview/llpanelclassified.cpp
@@ -1292,11 +1292,13 @@ void LLPanelClassifiedInfo::resetControls()
 	{
 		childSetEnabled("edit_btn", TRUE);
 		childSetVisible("edit_btn", TRUE);
+		childSetVisible("auto_renew", TRUE);
 	}
 	else
 	{
 		childSetEnabled("edit_btn", FALSE);
 		childSetVisible("edit_btn", FALSE);
+		childSetVisible("auto_renew", FALSE);
 	}
 }
 
diff --git a/indra/newview/skins/default/xui/en/panel_classified_info.xml b/indra/newview/skins/default/xui/en/panel_classified_info.xml
index 34c1923582c..903a9689f17 100644
--- a/indra/newview/skins/default/xui/en/panel_classified_info.xml
+++ b/indra/newview/skins/default/xui/en/panel_classified_info.xml
@@ -136,16 +136,6 @@
          top_pad="5"
          v_pad="0"
          value="[category]" />
-        <check_box
-         enabled="false"
-         height="16"
-         label="Auto renew each week"
-         layout="topleft"
-         left="10"
-         name="auto_renew"
-         top_pad="5"
-         v_pad="0"
-         width="290" />
         <text_editor
          allow_scroll="false"
          bg_visible="false"
@@ -161,6 +151,16 @@
          tool_tip="Price for listing."
          v_pad="0"
          width="105" />
+        <check_box
+         enabled="false"
+         height="16"
+         label="Auto renew each week"
+         layout="topleft"
+         left="10"
+         name="auto_renew"
+         top_pad="5"
+         v_pad="0"
+         width="290" />
         <text_editor
          allow_html="true"
          allow_scroll="false"
-- 
GitLab