Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8c5c4c50
Commit
8c5c4c50
authored
Aug 01, 2014
by
Tomek Romik
Committed by
Qiang Xue
Aug 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lines
parent
ed3564c1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
yii.validation.js
framework/assets/yii.validation.js
+0
-2
FileValidator.php
framework/validators/FileValidator.php
+2
-1
ImageValidator.php
framework/validators/ImageValidator.php
+1
-1
No files found.
framework/assets/yii.validation.js
View file @
8c5c4c50
...
...
@@ -123,8 +123,6 @@ yii.validation = (function ($) {
var
files
=
$
(
attribute
.
input
).
get
(
0
).
files
,
self
=
this
;
if
(
!
self
.
globalFiles
(
files
,
messages
,
options
)
)
{
return
;
}
...
...
framework/validators/FileValidator.php
View file @
8c5c4c50
...
...
@@ -332,7 +332,8 @@ class FileValidator extends Validator
/**
* @inheritdoc
*/
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
public
function
clientValidateAttribute
(
$object
,
$attribute
,
$view
)
{
$label
=
$object
->
getAttributeLabel
(
$attribute
);
if
(
$this
->
message
!==
null
){
...
...
framework/validators/ImageValidator.php
View file @
8c5c4c50
...
...
@@ -168,7 +168,7 @@ class ImageValidator extends FileValidator
$label
=
$object
->
getAttributeLabel
(
$attribute
);
// Inherit options from FileValidator
// Inherit
client
options from FileValidator
$options
=
$this
->
_clientOptions
;
if
(
$this
->
notImage
!==
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment