Fix: Migrate requests to delete orphelins
This commit is contained in:
parent
c40e5807be
commit
f0893ff424
@ -8,7 +8,7 @@ Section: web
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Recommends: firefox
|
Recommends: firefox
|
||||||
Homepage: http://www.dolibarr.org
|
Homepage: http://www.dolibarr.org
|
||||||
Description: Easy to use ERP & CRM software to manage your activity
|
Description: Easy to use web based ERP & CRM software
|
||||||
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
Dolibarr ERP & CRM is an easy to use open source/free software for small
|
||||||
and medium companies, foundations or freelances. It includes different
|
and medium companies, foundations or freelances. It includes different
|
||||||
features for Enterprise Resource Planning (ERP) and Customer Relationship
|
features for Enterprise Resource Planning (ERP) and Customer Relationship
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
* \file htdocs/comm/action/index.php
|
* \file htdocs/comm/action/index.php
|
||||||
* \ingroup agenda
|
* \ingroup agenda
|
||||||
* \brief Home page of calendar events
|
* \brief Home page of calendar events
|
||||||
* \version $Id$
|
* \version $Id: index.php,v 1.183 2011/07/22 06:51:31 simnandez Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
@ -487,10 +487,9 @@ if ($showbirthday)
|
|||||||
|
|
||||||
//Exernal Calendars
|
//Exernal Calendars
|
||||||
$listofextcals=array();
|
$listofextcals=array();
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL>=2)
|
|
||||||
|
if (empty($conf->global->AGENDA_DISABLE_EXT) && $conf->global->AGENDA_EXT_NB > 0)
|
||||||
{
|
{
|
||||||
if (empty($conf->global->AGENDA_DISABLE_EXT) && $conf->global->AGENDA_EXT_NB > 0)
|
|
||||||
{
|
|
||||||
$i=0;
|
$i=0;
|
||||||
while($i < $conf->global->AGENDA_EXT_NB)
|
while($i < $conf->global->AGENDA_EXT_NB)
|
||||||
{
|
{
|
||||||
@ -503,8 +502,8 @@ if ($conf->global->MAIN_FEATURES_LEVEL>=2)
|
|||||||
$colorcal = $conf->global->$paramkey;
|
$colorcal = $conf->global->$paramkey;
|
||||||
if ($url && $namecal) $listofextcals[]=array('src'=>$url,'name'=>$namecal,'color'=>$colorcal);
|
if ($url && $namecal) $listofextcals[]=array('src'=>$url,'name'=>$namecal,'color'=>$colorcal);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sizeof($listofextcals))
|
if (sizeof($listofextcals))
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT."/comm/action/class/ical.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/comm/action/class/ical.class.php");
|
||||||
@ -787,7 +786,7 @@ $("#actionagenda_vcal_link").attr("href","/public/agenda/agendaexport.php?format
|
|||||||
';
|
';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooter('$Date: 2011/07/22 06:51:31 $ - $Revision: 1.183 $');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
* \file htdocs/core/class/html.form.class.php
|
* \file htdocs/core/class/html.form.class.php
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
* \brief File of class with all html predefined components
|
* \brief File of class with all html predefined components
|
||||||
* \version $Id: html.form.class.php,v 1.190 2011/07/17 19:01:26 eldy Exp $
|
* \version $Id: html.form.class.php,v 1.191 2011/07/21 22:55:06 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -137,17 +137,18 @@ class Form
|
|||||||
/**
|
/**
|
||||||
* Show a text and picto with tooltip on text or picto
|
* Show a text and picto with tooltip on text or picto
|
||||||
* @param text Text to show
|
* @param text Text to show
|
||||||
* @param htmltext Content html of tooltip, coded into HTML/UTF8
|
* @param htmltext Content html of tooltip. Must be HTML/UTF8 encoded.
|
||||||
* @param tooltipon 1=tooltip sur texte, 2=tooltip sur picto, 3=tooltip sur les 2
|
* @param tooltipon 1=tooltip sur texte, 2=tooltip sur picto, 3=tooltip sur les 2
|
||||||
* @param direction -1=Le picto est avant, 0=pas de picto, 1=le picto est apres
|
* @param direction -1=Le picto est avant, 0=pas de picto, 1=le picto est apres
|
||||||
* @param img Code img du picto (use img_xxx() function to get it)
|
* @param img Code img du picto (use img_xxx() function to get it)
|
||||||
* @param extracss Add a CSS style to td tags
|
* @param extracss Add a CSS style to td tags
|
||||||
* @param notabs Do not include table and tr tags
|
* @param notabs Do not include table and tr tags
|
||||||
* @param incbefore Include code before the text
|
* @param incbefore Include code before the text
|
||||||
|
* @param noencodehtmltext Do not encode into html entity the htmltext
|
||||||
* @return string Code html du tooltip (texte+picto)
|
* @return string Code html du tooltip (texte+picto)
|
||||||
* @see Use function textwithpicto if you can.
|
* @see Use function textwithpicto if you can.
|
||||||
*/
|
*/
|
||||||
function textwithtooltip($text,$htmltext,$tooltipon=1,$direction=0,$img='',$extracss='',$notabs=0,$incbefore='')
|
function textwithtooltip($text,$htmltext,$tooltipon=1,$direction=0,$img='',$extracss='',$notabs=0,$incbefore='',$noencodehtmltext=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ class Form
|
|||||||
$htmltext=str_replace("\n","",$htmltext);
|
$htmltext=str_replace("\n","",$htmltext);
|
||||||
|
|
||||||
$htmltext=str_replace('"',""",$htmltext);
|
$htmltext=str_replace('"',""",$htmltext);
|
||||||
$paramfortooltipimg=' class="classfortooltip'.($extracss?' '.$extracss:'').'" title="'.dol_escape_htmltag($htmltext,1).'"'; // Attribut to put on td img tag to store tooltip
|
$paramfortooltipimg=' class="classfortooltip'.($extracss?' '.$extracss:'').'" title="'.($noencodehtmltext?$htmltext:dol_escape_htmltag($htmltext,1)).'"'; // Attribut to put on td img tag to store tooltip
|
||||||
$paramfortooltiptd =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag
|
$paramfortooltiptd =($extracss?' class="'.$extracss.'"':''); // Attribut to put on td text tag
|
||||||
|
|
||||||
$s="";
|
$s="";
|
||||||
@ -197,9 +198,10 @@ class Form
|
|||||||
* @param direction 1=Icon is after text, -1=Icon is before text
|
* @param direction 1=Icon is after text, -1=Icon is before text
|
||||||
* @param type Type of picto (info, help, warning, superadmin...)
|
* @param type Type of picto (info, help, warning, superadmin...)
|
||||||
* @param extracss Add a CSS style to td tags
|
* @param extracss Add a CSS style to td tags
|
||||||
|
* @param noencodehtmltext Do not encode into html entity the htmltext
|
||||||
* @return string HTML code of text, picto, tooltip
|
* @return string HTML code of text, picto, tooltip
|
||||||
*/
|
*/
|
||||||
function textwithpicto($text,$htmltext,$direction=1,$type='help',$extracss='')
|
function textwithpicto($text,$htmltext,$direction=1,$type='help',$extracss='',$noencodehtmltext=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -225,7 +227,7 @@ class Form
|
|||||||
// Warnings
|
// Warnings
|
||||||
if ($type == 'warning') $img=img_warning($alt);
|
if ($type == 'warning') $img=img_warning($alt);
|
||||||
|
|
||||||
return $this->textwithtooltip($text,$htmltext,2,$direction,$img,$extracss);
|
return $this->textwithtooltip($text,$htmltext,2,$direction,$img,$extracss,0,'',$noencodehtmltext);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
* \ingroup societe
|
* \ingroup societe
|
||||||
* \brief File of class to build ODT documents for third parties
|
* \brief File of class to build ODT documents for third parties
|
||||||
* \author Laurent Destailleur
|
* \author Laurent Destailleur
|
||||||
* \version $Id$
|
* \version $Id: doc_generic_invoice_odt.modules.php,v 1.19 2011/07/21 22:54:36 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/facture/modules_facture.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/facture/modules_facture.php");
|
||||||
@ -196,37 +196,9 @@ class doc_generic_invoice_odt extends ModelePDFFactures
|
|||||||
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
||||||
// Add list of substitution keys
|
// Add list of substitution keys
|
||||||
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
||||||
/*$dummy=new User($db);
|
$texthelp.=$langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it
|
||||||
$tmparray=$this->get_substitutionarray_user($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}
|
|
||||||
$dummy=new Societe($db);
|
|
||||||
$tmparray=$this->get_substitutionarray_mysoc($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}
|
|
||||||
$tmparray=$this->get_substitutionarray_thirdparty($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}*/
|
|
||||||
$texthelp.=$langs->trans("FullListOnOnlineDocumentation");
|
|
||||||
|
|
||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
|
||||||
//var_dump($listofdir);
|
|
||||||
|
|
||||||
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help','',1);
|
||||||
$texte.= '<table><tr><td>';
|
$texte.= '<table><tr><td>';
|
||||||
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->FACTURE_ADDON_PDF_ODT_PATH;
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
* \ingroup societe
|
* \ingroup societe
|
||||||
* \brief File of class to build ODT documents for third parties
|
* \brief File of class to build ODT documents for third parties
|
||||||
* \author Laurent Destailleur
|
* \author Laurent Destailleur
|
||||||
* \version $Id$
|
* \version $Id: doc_generic_odt.modules.php,v 1.32 2011/07/21 22:54:35 eldy Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/includes/modules/societe/modules_societe.class.php");
|
||||||
@ -115,37 +115,9 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
$texthelp=$langs->trans("ListOfDirectoriesForModelGenODT");
|
||||||
// Add list of substitution keys
|
// Add list of substitution keys
|
||||||
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
$texthelp.='<br>'.$langs->trans("FollowingSubstitutionKeysCanBeUsed").'<br>';
|
||||||
/*$dummy=new User($db);
|
$texthelp.=$langs->transnoentitiesnoconv("FullListOnOnlineDocumentation"); // This contains an url, we don't modify it
|
||||||
$tmparray=$this->get_substitutionarray_user($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}
|
|
||||||
$dummy=new Societe($db);
|
|
||||||
$tmparray=$this->get_substitutionarray_mysoc($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}
|
|
||||||
$tmparray=$this->get_substitutionarray_thirdparty($dummy,$langs);
|
|
||||||
$nb=0;
|
|
||||||
foreach($tmparray as $key => $val)
|
|
||||||
{
|
|
||||||
$texthelp.='{'.$key.'}<br>';
|
|
||||||
$nb++;
|
|
||||||
if ($nb >= 5) { $texthelp.='...<br>'; break; }
|
|
||||||
}*/
|
|
||||||
$texthelp.=$langs->trans("FullListOnOnlineDocumentation");
|
|
||||||
|
|
||||||
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help');
|
|
||||||
//var_dump($listofdir);
|
|
||||||
|
|
||||||
|
$texte.= $form->textwithpicto($texttitle,$texthelp,1,'help','',1);
|
||||||
$texte.= '<table><tr><td>';
|
$texte.= '<table><tr><td>';
|
||||||
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
$texte.= '<textarea class="flat" cols="60" name="value1">';
|
||||||
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
$texte.=$conf->global->COMPANY_ADDON_PDF_ODT_PATH;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- $Id: 3.0.0-3.1.0.sql,v 1.79 2011/07/12 22:12:12 eldy Exp $
|
-- $Id: 3.0.0-3.1.0.sql,v 1.80 2011/07/22 13:46:34 eldy Exp $
|
||||||
--
|
--
|
||||||
-- Be carefull to requests order.
|
-- Be carefull to requests order.
|
||||||
-- This file must be loaded by calling /install/index.php page
|
-- This file must be loaded by calling /install/index.php page
|
||||||
@ -124,7 +124,9 @@ ALTER TABLE llx_usergroup_user DROP INDEX fk_user;
|
|||||||
ALTER TABLE llx_usergroup_user DROP INDEX uk_user_group_entity;
|
ALTER TABLE llx_usergroup_user DROP INDEX uk_user_group_entity;
|
||||||
ALTER TABLE llx_usergroup_user ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER rowid;
|
ALTER TABLE llx_usergroup_user ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER rowid;
|
||||||
ALTER TABLE llx_usergroup_user ADD UNIQUE INDEX uk_usergroup_user (entity,fk_user,fk_usergroup);
|
ALTER TABLE llx_usergroup_user ADD UNIQUE INDEX uk_usergroup_user (entity,fk_user,fk_usergroup);
|
||||||
|
-- V4.1 DELETE FROM llx_usergroup_user WHERE fk_user NOT IN (SELECT rowid from llx_user);
|
||||||
ALTER TABLE llx_usergroup_user ADD CONSTRAINT fk_usergroup_user_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_usergroup_user ADD CONSTRAINT fk_usergroup_user_fk_user FOREIGN KEY (fk_user) REFERENCES llx_user (rowid);
|
||||||
|
-- V4.1 DELETE FROM llx_usergroup_user WHERE fk_usergroup NOT IN (SELECT rowid from llx_usergroup);
|
||||||
ALTER TABLE llx_usergroup_user ADD CONSTRAINT fk_usergroup_user_fk_usergroup FOREIGN KEY (fk_usergroup) REFERENCES llx_usergroup (rowid);
|
ALTER TABLE llx_usergroup_user ADD CONSTRAINT fk_usergroup_user_fk_usergroup FOREIGN KEY (fk_usergroup) REFERENCES llx_usergroup (rowid);
|
||||||
|
|
||||||
ALTER TABLE llx_commande ADD COLUMN ref_int varchar(30) AFTER ref_ext;
|
ALTER TABLE llx_commande ADD COLUMN ref_int varchar(30) AFTER ref_ext;
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* \file htdocs/lib/agenda.lib.php
|
* \file htdocs/lib/agenda.lib.php
|
||||||
* \brief Set of function for the agenda module
|
* \brief Set of function for the agenda module
|
||||||
* \version $Id$
|
* \version $Id: agenda.lib.php,v 1.42 2011/07/22 06:51:30 simnandez Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -324,13 +324,11 @@ function agenda_prepare_head()
|
|||||||
$head[$h][2] = 'xcal';
|
$head[$h][2] = 'xcal';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL >= 2) // In dev version only for the moment
|
|
||||||
{
|
|
||||||
$head[$h][0] = DOL_URL_ROOT."/admin/agenda_extsites.php";
|
$head[$h][0] = DOL_URL_ROOT."/admin/agenda_extsites.php";
|
||||||
$head[$h][1] = $langs->trans("ExtSites");
|
$head[$h][1] = $langs->trans("ExtSites");
|
||||||
$head[$h][2] = 'extsites';
|
$head[$h][2] = 'extsites';
|
||||||
$h++;
|
$h++;
|
||||||
}
|
|
||||||
|
|
||||||
return $head;
|
return $head;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user