[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6737] property: hide 'publish' in ticket when fronte
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6737] property: hide 'publish' in ticket when frontend not enabled |
Date: |
Fri, 07 Jan 2011 15:43:22 +0000 |
Revision: 6737
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6737
Author: sigurdne
Date: 2011-01-07 15:43:22 +0000 (Fri, 07 Jan 2011)
Log Message:
-----------
property: hide 'publish' in ticket when frontend not enabled
Modified Paths:
--------------
trunk/property/inc/class.uitts.inc.php
Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php 2011-01-07 15:32:14 UTC (rev
6736)
+++ trunk/property/inc/class.uitts.inc.php 2011-01-07 15:43:22 UTC (rev
6737)
@@ -2575,12 +2575,12 @@
}
$note_def = array
- (
+ (
array('key' => 'value_count',
'label'=>'#', 'sortable'=>true,'resizeable'=>true),
array('key' => 'value_date',
'label'=>lang('Date'),'sortable'=>true,'resizeable'=>true),
array('key' => 'value_user',
'label'=>lang('User'),'sortable'=>true,'resizeable'=>true),
array('key' => 'value_note',
'label'=>lang('Note'),'sortable'=>true,'resizeable'=>true)
- );
+ );
if($access_order)
{
@@ -2588,17 +2588,22 @@
foreach($additional_notes as &$note)
{
$note['order_text'] = '<input
type="checkbox" name="values[order_text][]" value="'.$note['value_note'].'"
title="'.lang('Check to add text to order').'">';
+ }
+ }
-
+
if($GLOBALS['phpgw_info']['apps']['frontend']['enabled'])
+ {
+ $note_def[] = array('key' =>
'publish_note','label'=>lang('publish
text'),'sortable'=>false,'resizeable'=>true,'formatter'=>'FormatterCenter');
+ foreach($additional_notes as &$note)
+ {
+ $_checked = $note['value_publish'] ?
'checked' : '';
+ $note['publish_note'] = "<input
type='checkbox' {$_checked} name='values[publish_note][]'
value='{$id}_{$note['value_id']}' title='".lang('Check to publish text at
frontend')."'>";
}
}
- $note_def[] = array('key' =>
'publish_note','label'=>lang('publish
text'),'sortable'=>false,'resizeable'=>true,'formatter'=>'FormatterCenter');
foreach($additional_notes as &$note)
{
$note['value_note'] =
nl2br($note['value_note']);
- $_checked = $note['value_publish'] ? 'checked'
: '';
- $note['publish_note'] = "<input type='checkbox'
{$_checked} name='values[publish_note][]' value='{$id}_{$note['value_id']}'
title='".lang('Check to publish text at frontend')."'>";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6737] property: hide 'publish' in ticket when frontend not enabled,
Sigurd Nes <=