Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
7e6777f3
Commit
7e6777f3
authored
11 years ago
by
Jean-François Ferry
Browse files
Options
Downloads
Patches
Plain Diff
Fix: bad id when deleting picture on categorie / missing lang
parent
6eac7e1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/categories/photos.php
+3
-2
3 additions, 2 deletions
htdocs/categories/photos.php
htdocs/langs/en_US/categories.lang
+2
-0
2 additions, 0 deletions
htdocs/langs/en_US/categories.lang
with
5 additions
and
2 deletions
htdocs/categories/photos.php
+
3
−
2
View file @
7e6777f3
...
...
@@ -3,6 +3,7 @@
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2014 Jean-François Ferry <jfefe@aternatik.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -264,11 +265,11 @@ if ($object->id)
// On propose la generation de la vignette si elle n'existe pas et si la taille est superieure aux limites
if
(
!
$obj
[
'photo_vignette'
]
&&
preg_match
(
'/(\.bmp|\.gif|\.jpg|\.jpeg|\.png)$/i'
,
$obj
[
'photo'
])
&&
(
$object
->
imgWidth
>
$maxWidth
||
$object
->
imgHeight
>
$maxHeight
))
{
print
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
entity
.
'&action=addthumb&type='
.
$type
.
'&file='
.
urlencode
(
$pdir
.
$viewfilename
)
.
'">'
.
img_picto
(
$langs
->
trans
(
'GenerateThumb'
),
'refresh'
)
.
' </a>'
;
print
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
.
'&action=addthumb&type='
.
$type
.
'&file='
.
urlencode
(
$pdir
.
$viewfilename
)
.
'">'
.
img_picto
(
$langs
->
trans
(
'GenerateThumb'
),
'refresh'
)
.
' </a>'
;
}
if
(
$user
->
rights
->
categorie
->
creer
)
{
print
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
entity
.
'&action=delete&type='
.
$type
.
'&file='
.
urlencode
(
$pdir
.
$viewfilename
)
.
'">'
;
print
'<a href="'
.
$_SERVER
[
"PHP_SELF"
]
.
'?id='
.
$object
->
id
.
'&action=delete&type='
.
$type
.
'&file='
.
urlencode
(
$pdir
.
$viewfilename
)
.
'">'
;
print
img_delete
()
.
'</a>'
;
}
if
(
$nbbyrow
)
print
'</td>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/categories.lang
+
2
−
0
View file @
7e6777f3
...
...
@@ -105,3 +105,5 @@ CatProdLinks=Products
CatCusLinks=Customer/Prospects
CatSupLinks=Suppliers
DeleteFromCat=Remove from category
DeletePicture=Picture delete
ConfirmDeletePicture=Confirm picture deletion?
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment