From 78208b12c6340e70bfa7bacd3a24df2908c10591 Mon Sep 17 00:00:00 2001
From: ohga
Date: Tue, 29 Jul 2014 17:33:46 +0900
Subject: [PATCH 01/65] =?UTF-8?q?action=5Fname=E3=81=AE=E5=BD=A2=E5=BC=8F?=
=?UTF-8?q?=E3=81=AB=E3=82=88=E3=81=A3=E3=81=A6=E3=81=AFNotice=E3=81=8C?=
=?UTF-8?q?=E7=99=BA=E7=94=9F=E3=81=99=E3=82=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/components/authcheck/Main.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/webapp/components/authcheck/Main.class.php b/html/webapp/components/authcheck/Main.class.php
index 6f6643c..ced6aea 100644
--- a/html/webapp/components/authcheck/Main.class.php
+++ b/html/webapp/components/authcheck/Main.class.php
@@ -349,7 +349,7 @@ function AuthCheck($action_name, $page_id, $block_id) {
$isMobileAction = ($pathList[0] == 'common'
&& $pathList[1] == 'mobile');
$isMobileAction = ($isMobileAction
- || $pathList[2] == 'mobile');
+ || isset($pathList[2]) && $pathList[2] == 'mobile');
if ($isMobileAction
&& empty($mobile_flag)) {
return false;
From 608d3516d1c37ca25604b8051c5d03fb1df96371 Mon Sep 17 00:00:00 2001
From: Rika Fujiwara
Date: Wed, 24 Sep 2014 15:39:58 +0900
Subject: [PATCH 02/65] =?UTF-8?q?IE7=20=E3=81=AE=E3=81=A8=E3=81=8D?=
=?UTF-8?q?=E3=80=81=E3=83=97=E3=83=AB=E3=83=80=E3=82=A6=E3=83=B3=E3=83=A1?=
=?UTF-8?q?=E3=83=8B=E3=83=A5=E3=83=BC=E3=83=86=E3=83=B3=E3=83=97=E3=83=AC?=
=?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=AE=E3=82=82=E3=81=AE=E3=82=92=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E3=81=A8JS?=
=?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=99?=
=?UTF-8?q?=E3=82=8B=E3=81=93=E3=81=A8=E3=81=B8=E3=81=AE=E5=AF=BE=E5=BF=9C?=
=?UTF-8?q?=20#113?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Issueにも記載しておりますが、原因は未ログイン時、隠されているログインPOPUP画面で仕込まれている強制的なfocusイベントとblurイベントの発火が
jQueryロードのタイミングと合わさった時のprototype.js と jQueryとの競合です。
回避するために、以下の実装を行いました。
1.ページのloadイベントを待ってのjQueryロードを行うようにした
2.IE9未満の場合に限り、400ms JQUERYのロードを待つように変更
3.jQueryロード中はメニューを操作不可能にして、別ページへの切り替えが行えないように変更
これでも完全ではありません。JQロードは動的に行われているので他のイベント処理を完全に防ぐことは不可能です。
ただ、上記の実装追加で競合の発生の可能性は大変低くなっています。
IE7,IE8のユーザーからは、メニュー操作ができるようになるまで一瞬の間が生じることになります。
対策としては「待ちタイマ値」の400msをもう少し短くすることですが、こちらの試験では、ここの値を小さくすると
エラーが発生する確率が増えました。
---
html/webapp/modules/menu/files/js/menu.js | 79 +++++++++++++++++++
.../menu_view_main_init.html | 36 +--------
.../menu_view_main_init.html | 36 +--------
.../menu_view_main_init.html | 36 +--------
.../menu_view_main_init.html | 39 +--------
.../menu_view_main_init.html | 39 +--------
6 files changed, 86 insertions(+), 179 deletions(-)
diff --git a/html/webapp/modules/menu/files/js/menu.js b/html/webapp/modules/menu/files/js/menu.js
index c75dec5..4cfb421 100644
--- a/html/webapp/modules/menu/files/js/menu.js
+++ b/html/webapp/modules/menu/files/js/menu.js
@@ -860,5 +860,84 @@ clsMenu.prototype = {
}
}.bind(this);
commonCls.send(chg_params);
+ },
+ // 未ログインのとき
+ // ログインinputのフォーカス&フォーカス外しの初期処理で
+ // onfocus & onblurのイベントが走る
+ // このイベント処理とJQロードのタイミングがちょうどかち合うとJSエラーが発生する
+ // このため、IE & < 9 & 未ログインのときに限り、JSロードを400MS待たせ、かつロード中はページ切り替え動作をキャンセルするよう
+ menuJqLoad: function(block_id, color) {
+ var jqload_func = this._menuJqLoad;
+ var cancel_func = this._menuCancelForJqload;
+
+ // IEかつ未ログインだったら
+ if($('login_id_0') && browser.isIE && browser.version < 9) {
+ var els = Element.getElementsByClassName(this.id, "menu_jq_gnavi_pldwn_" + color + "_btn");
+ els.each(
+ function(el){
+ el.observe("click", cancel_func);
+ }
+ );
+
+ setTimeout(function(){
+ jqload_func(block_id, color);
+ }, 400);
+ }
+ else {
+ jqload_func(block_id, color);
+ }
+ },
+ _menuCancelForJqload : function(e) {
+ jcheck = new Function('return !(typeof jQuery !== "undefined" && window.$ === jQuery)');
+ commonCls.wait(jcheck);
+ return false;
+ },
+ _menuJqLoad : function(block_id, color) {
+
+ var cancel_func = this._menuCancelForJqload;
+
+ jqcheckCls.jqload("jquery-1.6.4.min", "window.jQuery",
+ function() {
+ var zindex = 900;
+ if(browser.isIE && browser.version <= 7) {
+ jQuery("#" + block_id + " ul.menu_jq_gnavi_pldwn_" + color + " > li").each(function(index,el) {
+ jQuery(el).attr("style","z-index:"+zindex);
+ zindex--;
+ });
+ }
+ if(browser.isIE && browser.version < 7) {
+ jQuery("#" + block_id + " ul.menu_jq_gnavi_pldwn_" + color + " li").hover(
+ function() { jQuery(">a", this).addClass("menu_jq_gnavi_pldwn_" + color + "_actives"); jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub:not(:animated)", this).show(); },
+ function() { jQuery(">a", this).removeClass("menu_jq_gnavi_pldwn_" + color + "_actives"); jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub", this).hide(); }
+ );
+ }
+ else {
+ jQuery("#" + block_id + " ul.menu_jq_gnavi_pldwn_" + color + " li").hover(
+ function() {
+ jQuery(">a", this).addClass("menu_jq_gnavi_pldwn_" + color + "_actives");
+ if(jQuery(this).closest("ul").hasClass("menu_jq_gnavi_pldwn_" + color + "_sub")) {
+ /*!browser.isIE && browser.version > 7 first view */
+ if(jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub", this).css("left")=="0px" || jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub", this).css("left") == "auto"){
+ jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub", this).css("left", jQuery(this).width());
+ }
+ }
+ jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub:not(:animated)", this).slideDown("fast");
+ },
+ function() {
+ jQuery(">a", this).removeClass("menu_jq_gnavi_pldwn_" + color + "_actives");
+ jQuery(">ul.menu_jq_gnavi_pldwn_" + color + "_sub", this).slideUp("fast");
+ }
+ );
+ }
+ if($('login_id_0') && browser.isIE && browser.version < 9) {
+ Element.getElementsByClassName(this.id, "menu_jq_gnavi_pldwn_" + color + "_btn").each(
+ function(el){
+ el.stopObserving("click", cancel_func);
+ }
+ );
+ }
+
+ }
+ );
}
}
\ No newline at end of file
diff --git a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_blue/menu_view_main_init.html b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_blue/menu_view_main_init.html
index 2a547e3..f35764d 100644
--- a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_blue/menu_view_main_init.html
+++ b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_blue/menu_view_main_init.html
@@ -11,40 +11,6 @@
<{include file="../menu_script.html"}>
<{/strip}>
diff --git a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_gray/menu_view_main_init.html b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_gray/menu_view_main_init.html
index cde7810..862a988 100644
--- a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_gray/menu_view_main_init.html
+++ b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_gray/menu_view_main_init.html
@@ -11,40 +11,6 @@
<{include file="../menu_script.html"}>
<{/strip}>
diff --git a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_green/menu_view_main_init.html b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_green/menu_view_main_init.html
index 91e4476..33eb078 100644
--- a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_green/menu_view_main_init.html
+++ b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_green/menu_view_main_init.html
@@ -11,40 +11,6 @@
<{include file="../menu_script.html"}>
<{/strip}>
diff --git a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_orange/menu_view_main_init.html b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_orange/menu_view_main_init.html
index f8522ef..7a1bacc 100644
--- a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_orange/menu_view_main_init.html
+++ b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_orange/menu_view_main_init.html
@@ -11,40 +11,5 @@
<{include file="../menu_script.html"}>
-<{/strip}>
+ Event.observe(window, "load", function() { menuCls['<{$id}>'].menuJqLoad("<{$id}>", "orange"); }, true);
+<{/strip}>
diff --git a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_red/menu_view_main_init.html b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_red/menu_view_main_init.html
index 5659bc1..c04356c 100644
--- a/html/webapp/modules/menu/templates/jq_gnavi_pldwn_red/menu_view_main_init.html
+++ b/html/webapp/modules/menu/templates/jq_gnavi_pldwn_red/menu_view_main_init.html
@@ -11,40 +11,5 @@
<{include file="../menu_script.html"}>
-<{/strip}>
+ Event.observe(window, "load", function() { menuCls['<{$id}>'].menuJqLoad("<{$id}>", "red"); }, true);
+<{/strip}>
From 3ccb47744f42c6f34f7a0bd22728838069363036 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=82=AA=E3=83=BC=E3=83=97=E3=83=B3=E3=82=BD=E3=83=BC?=
=?UTF-8?q?=E3=82=B9=E3=83=BB=E3=83=AF=E3=83=BC=E3=82=AF=E3=82=B7=E3=83=A7?=
=?UTF-8?q?=E3=83=83=E3=83=97=20=E6=B0=B8=E5=8E=9F=20=E7=AF=A4?=
Date: Thu, 25 Sep 2014 15:13:23 +0900
Subject: [PATCH 03/65] =?UTF-8?q?=E3=83=AA=E3=82=B9=E3=83=88=E3=82=A2?=
=?UTF-8?q?=E6=99=82=E3=80=81=E3=83=A1=E3=83=A2=E3=83=AA=E3=82=92=E7=AF=80?=
=?UTF-8?q?=E7=B4=84=E3=81=99=E3=82=8B=E3=81=9F=E3=82=81=E3=81=AE=E4=BF=AE?=
=?UTF-8?q?=E6=AD=A3=E3=82=92=E8=A1=8C=E3=81=A3=E3=81=9F=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/backup/components/Restore.class.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/html/webapp/modules/backup/components/Restore.class.php b/html/webapp/modules/backup/components/Restore.class.php
index ed18790..bd5e1c8 100644
--- a/html/webapp/modules/backup/components/Restore.class.php
+++ b/html/webapp/modules/backup/components/Restore.class.php
@@ -214,7 +214,11 @@ function getRestoreArray($upload_id, $backup_page_id, $module_id, $temporary_fil
//$options = array ('parseAttributes' => true); 属性値を含める
//$unserializer =& new XML_Unserializer($options);
- $result = $unserializer->unserialize($xml);
+ // XML を読み込んだ変数から処理すると、環境によってはメモリを使いすぎてエラーになるケースがあった。
+ // そのため、XML は再度、ファイルから取得するように修正し、メモリの消費を抑えた。
+ // 2014-08-15 by nagahara@opensource-workshop.jp
+ // $result = $unserializer->unserialize($xml);
+ $result = $unserializer->unserialize($temporary_file_path.BACKUP_ROOM_XML_FILE_NAME, true);
if($result !== true) {
$this->_fileAction->delDir($temporary_file_path);
$errorList->add("backup", BACKUP_FAILURE_UNSERIALIZE);
From 820871414ba861a3496fd5263cf8408a0a328c46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E3=82=AA=E3=83=BC=E3=83=97=E3=83=B3=E3=82=BD=E3=83=BC?=
=?UTF-8?q?=E3=82=B9=E3=83=BB=E3=83=AF=E3=83=BC=E3=82=AF=E3=82=B7=E3=83=A7?=
=?UTF-8?q?=E3=83=83=E3=83=97=20=E6=B0=B8=E5=8E=9F=20=E7=AF=A4?=
Date: Thu, 25 Sep 2014 15:59:08 +0900
Subject: [PATCH 04/65] =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=83=AB=E3=82=A2?=
=?UTF-8?q?=E3=83=89=E3=83=AC=E3=82=B9=E6=AC=84=E3=81=8C=E8=A4=87=E6=95=B0?=
=?UTF-8?q?=E3=81=82=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AE=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/registration/action/main/mail/Mail.class.php | 8 +++++++-
.../webapp/modules/registration/components/View.class.php | 4 +++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/html/webapp/modules/registration/action/main/mail/Mail.class.php b/html/webapp/modules/registration/action/main/mail/Mail.class.php
index a08ba2e..b4086be 100644
--- a/html/webapp/modules/registration/action/main/mail/Mail.class.php
+++ b/html/webapp/modules/registration/action/main/mail/Mail.class.php
@@ -61,7 +61,13 @@ function execute()
$users = array();
if ($mail['regist_user_send']
&& !empty($mail['regist_user_email'])) {
- $users[]['email'] = $mail['regist_user_email'];
+
+ // メールアドレス欄が複数ある場合の対応 by nagahara@opensource-workshop.jp
+ // $users[]['email'] = $mail['regist_user_email'];
+ foreach( $mail['regist_user_email'] as $mail_item ) {
+ $users[]['email'] = $mail_item;
+ }
+
$this->mailMain->setToUsers($users);
$this->mailMain->send();
}
diff --git a/html/webapp/modules/registration/components/View.class.php b/html/webapp/modules/registration/components/View.class.php
index a87dd72..efffefc 100644
--- a/html/webapp/modules/registration/components/View.class.php
+++ b/html/webapp/modules/registration/components/View.class.php
@@ -741,7 +741,9 @@ function &_makeMail(&$recordSet)
}
if ($item['item_type'] == REGISTRATION_TYPE_EMAIL) {
- $mail['regist_user_email'] = $row[$key];
+ // メールアドレス欄が複数ある場合の対応 by nagahara@opensource-workshop.jp
+ // $mail['regist_user_email'] = $row[$key];
+ $mail['regist_user_email'][] = $row[$key];
}
$mail["data"] .= sprintf($dataFormat, htmlspecialchars($item["item_name"]), $value);
From f44542db655da6f5405dfad4bd17efc4a15b6c5a Mon Sep 17 00:00:00 2001
From: ohga
Date: Fri, 13 Feb 2015 10:55:54 +0900
Subject: [PATCH 05/65] =?UTF-8?q?php5.4=E4=BB=A5=E4=B8=8A=E3=81=AE?=
=?UTF-8?q?=E7=92=B0=E5=A2=83=E3=81=A7=E7=94=BB=E9=9D=A2=E4=B8=8A=E9=83=A8?=
=?UTF-8?q?=E3=81=AE=E3=83=9A=E3=83=BC=E3=82=B8=E3=82=B9=E3=82=BF=E3=82=A4?=
=?UTF-8?q?=E3=83=AB=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E6=8A=BC=E4=B8=8B?=
=?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=A8Warning=E3=81=8C=E7=99=BA=E7=94=9F?=
=?UTF-8?q?=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AE=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pagestyle/view/edit/init/Init.class.php | 28 +++++++++----------
1 file changed, 14 insertions(+), 14 deletions(-)
mode change 100644 => 100755 html/webapp/modules/dialog/pagestyle/view/edit/init/Init.class.php
diff --git a/html/webapp/modules/dialog/pagestyle/view/edit/init/Init.class.php b/html/webapp/modules/dialog/pagestyle/view/edit/init/Init.class.php
old mode 100644
new mode 100755
index e96e140..54925aa
--- a/html/webapp/modules/dialog/pagestyle/view/edit/init/Init.class.php
+++ b/html/webapp/modules/dialog/pagestyle/view/edit/init/Init.class.php
@@ -213,23 +213,23 @@ function execute()
} else {
$this->background_color[$key] = "";
}
-
- foreach($border_array as $border => $border_value) {
- if(isset($theme_list[$key][$border])) {
- if($key == "general") {
- $this->headercolumn[$border_value] = explode(",",$theme_list[$key][$border]);
- $this->leftcolumn[$border_value] = explode(",",$theme_list[$key][$border]);
- $this->rightcolumn[$border_value] = explode(",",$theme_list[$key][$border]);
- $this->centercolumn[$border_value] = explode(",",$theme_list[$key][$border]);
- $this->footercolumn[$border_value] = explode(",",$theme_list[$key][$border]);
- } else {
- $this->$key[$border_value] = explode(",",$theme_list[$key][$border]);
- }
+
+ foreach ($border_array as $border => $border_value) {
+ if (!isset($theme_list[$key][$border])) {
+ // 未定義の場合はセットせず、generalの値を使用する
+ continue;
+ }
+ if ($key == "general") {
+ $this->headercolumn[$border_value] = explode(",", $theme_list[$key][$border]);
+ $this->leftcolumn[$border_value] = explode(",", $theme_list[$key][$border]);
+ $this->rightcolumn[$border_value] = explode(",", $theme_list[$key][$border]);
+ $this->centercolumn[$border_value] = explode(",", $theme_list[$key][$border]);
+ $this->footercolumn[$border_value] = explode(",", $theme_list[$key][$border]);
} else {
- $this->$key[$border_value] = "";
+ // 定義されている場合は定義内容をセットする
+ $this->{$key}[$border_value] = explode(",", $theme_list[$key][$border]);
}
}
-
}
}
}
From dbda8c1e520b8d2928d09d9d04aa766e1aed6608 Mon Sep 17 00:00:00 2001
From: ohga
Date: Fri, 13 Feb 2015 10:58:59 +0900
Subject: [PATCH 06/65] =?UTF-8?q?php5.4=E4=BB=A5=E4=B8=8A=E3=81=AE?=
=?UTF-8?q?=E7=92=B0=E5=A2=83=E3=81=A7=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF?=
=?UTF-8?q?=E3=82=B9=E3=82=BF=E3=82=A4=E3=83=AB=E3=82=BF=E3=83=96=E3=82=92?=
=?UTF-8?q?=E6=8A=BC=E4=B8=8B=E3=81=99=E3=82=8B=E3=81=A8Warning=E3=81=8C?=
=?UTF-8?q?=E7=99=BA=E7=94=9F=E3=81=99=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AE?=
=?UTF-8?q?=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/components/common/Main.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
mode change 100644 => 100755 html/webapp/components/common/Main.class.php
diff --git a/html/webapp/components/common/Main.class.php b/html/webapp/components/common/Main.class.php
old mode 100644
new mode 100755
index febd5c0..feec79f
--- a/html/webapp/components/common/Main.class.php
+++ b/html/webapp/components/common/Main.class.php
@@ -187,7 +187,7 @@ function viewAssign(&$renderer) {
$renderer->assign('module_id',$modules[$pathList[0]]['module_id']);
} else {
$module_id = 0;
- $renderer->assign('module_obj',"");
+ $renderer->assign('module_obj', array());
$renderer->assign('module_id',0);
}
From b596343ff72af2d1121305967471defc673e1bbb Mon Sep 17 00:00:00 2001
From: Rika Fujiwara
Date: Mon, 16 Feb 2015 13:43:03 +0900
Subject: [PATCH 07/65] =?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=A0=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=EF=BC=9E=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC=E3=83=AB?=
=?UTF-8?q?=E3=81=AE=E5=88=A9=E7=94=A8=E8=A8=B1=E5=8F=AF=E3=81=AB=E3=81=A6?=
=?UTF-8?q?=E3=80=81=E6=96=B0=E3=81=9F=E3=81=AA=E3=83=A2=E3=82=B8=E3=83=A5?=
=?UTF-8?q?=E3=83=BC=E3=83=AB=E3=82=92=E5=88=A9=E7=94=A8=E3=81=A7=E3=81=8D?=
=?UTF-8?q?=E3=82=8B=E6=96=B9=E3=81=AB=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=9F?=
=?UTF-8?q?=E3=81=A8=E3=81=8D=E3=80=81=E5=AF=BE=E8=B1=A1=E3=81=AE=E3=83=AB?=
=?UTF-8?q?=E3=83=BC=E3=83=A0=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AB=E3=82=B0?=
=?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=97=E6=9E=A0=E3=81=A7=E3=81=8F=E3=81=8F?=
=?UTF-8?q?=E3=81=A3=E3=81=9F=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC=E3=83=AB?=
=?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E7=BE=A4=E3=81=8C=E3=81=82?=
=?UTF-8?q?=E3=82=8B=E3=81=A8=E3=80=81=E3=81=9D=E3=81=AE=E3=82=B0=E3=83=AB?=
=?UTF-8?q?=E3=83=BC=E3=83=97=E6=9E=A0=E3=81=8C=E5=89=8A=E9=99=A4=E3=81=95?=
=?UTF-8?q?=E3=82=8C=E3=81=A6=E3=80=81=E3=82=B0=E3=83=AB=E3=83=BC=E3=83=97?=
=?UTF-8?q?=E6=9E=A0=E4=B8=AD=E3=81=AE=E9=85=8D=E7=BD=AE=E3=81=8C=E5=85=A8?=
=?UTF-8?q?=E3=81=A6=E6=B6=88=E3=81=95=E3=82=8C=E3=82=8B=E7=8F=BE=E8=B1=A1?=
=?UTF-8?q?=E3=81=AB=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../admin/selmodules/Selmodules.class.php | 43 ++++++++++---------
1 file changed, 22 insertions(+), 21 deletions(-)
diff --git a/html/webapp/modules/room/action/admin/selmodules/Selmodules.class.php b/html/webapp/modules/room/action/admin/selmodules/Selmodules.class.php
index 95f6152..769d9d0 100644
--- a/html/webapp/modules/room/action/admin/selmodules/Selmodules.class.php
+++ b/html/webapp/modules/room/action/admin/selmodules/Selmodules.class.php
@@ -76,30 +76,31 @@ function execute()
$isError = true;
}
- $sql = "SELECT B.block_id, "
- . "B.page_id "
- . "FROM {blocks} B "
- . "INNER JOIN {pages} P "
- . "ON B.page_id = P.page_id "
- . "WHERE P.room_id = ? "
- . "AND B.module_id IN ('" . implode("','", $unusableModuleIds) . "')";
- $blocks =& $this->db->execute($sql, $roomId);
- if ($blocks === false) {
- $this->db->addError();
- }
+ if(count($unusableModuleIds) > 0) {
+ $sql = "SELECT B.block_id, "
+ . "B.page_id "
+ . "FROM {blocks} B "
+ . "INNER JOIN {pages} P "
+ . "ON B.page_id = P.page_id "
+ . "WHERE P.room_id = ? "
+ . "AND B.module_id IN ('" . implode("','", $unusableModuleIds) . "')";
+ $blocks =& $this->db->execute($sql, $roomId);
+ if ($blocks === false) {
+ $this->db->addError();
+ }
- foreach($blocks as $block) {
- $request = array(
- 'block_id' => $block['block_id'],
- 'page_id' => $block['page_id']
- );
- $result = $this->preexecuteMain->preExecute('pages_actionblock_deleteblock', $request);
- if ($result === false
- || $result === 'false') {
- $isError = true;
+ foreach($blocks as $block) {
+ $request = array(
+ 'block_id' => $block['block_id'],
+ 'page_id' => $block['page_id']
+ );
+ $result = $this->preexecuteMain->preExecute('pages_actionblock_deleteblock', $request);
+ if ($result === false
+ || $result === 'false') {
+ $isError = true;
+ }
}
}
-
if($isError) {
return 'error';
}
From 779056a86e8a3735a81df7979c84a35e0e678378 Mon Sep 17 00:00:00 2001
From: ohga
Date: Thu, 19 Feb 2015 14:11:34 +0900
Subject: [PATCH 08/65] =?UTF-8?q?[php5.4=E4=BB=A5=E4=B8=8A=E5=AF=BE?=
=?UTF-8?q?=E5=BF=9C]=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC=E3=83=AB?=
=?UTF-8?q?=E3=82=A2=E3=83=83=E3=83=97=E3=83=87=E3=83=BC=E3=83=88=E3=81=AE?=
=?UTF-8?q?=E9=9A=9B=E3=81=ABWarning=E3=81=8C=E5=87=BA=E3=82=8B=E5=95=8F?=
=?UTF-8?q?=E9=A1=8C=E3=81=AE=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
smartyのコンパイルの処理でWarningが出ているが、smartyのコードは修正しない方針のため、error_reportingを変更することで回避
---
html/webapp/modules/module/components/Compmain.class.php | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
mode change 100644 => 100755 html/webapp/modules/module/components/Compmain.class.php
diff --git a/html/webapp/modules/module/components/Compmain.class.php b/html/webapp/modules/module/components/Compmain.class.php
old mode 100644
new mode 100755
index e8f71e4..026bbb8
--- a/html/webapp/modules/module/components/Compmain.class.php
+++ b/html/webapp/modules/module/components/Compmain.class.php
@@ -45,6 +45,9 @@ function Module_Components_Compmain() {
* @access public
*/
function clearCacheByDirname($dirname) {
+ $currentErrorReporting = error_reporting();
+ error_reporting($currentErrorReporting & ~E_WARNING);
+
// ----------------------------------------------
// --- キャッシュクリア ---
// ----------------------------------------------
@@ -76,10 +79,13 @@ function clearCacheByDirname($dirname) {
//キャッシュクリア
$renderer->clear_cache();
$cache->setClearCache($clear_cache); //元に戻す
-
+
+ error_reporting($currentErrorReporting);
return true;
}
}
+
+ error_reporting($currentErrorReporting);
return false;
}
From bbef20dec00755d7ce3f277e1a06a40ae5922e6c Mon Sep 17 00:00:00 2001
From: ohga
Date: Thu, 19 Feb 2015 14:14:55 +0900
Subject: [PATCH 09/65] =?UTF-8?q?[php5.4=E4=BB=A5=E4=B8=8A=E5=AF=BE?=
=?UTF-8?q?=E5=BF=9C]grid=E3=81=8C=E6=AD=A3=E5=B8=B8=E3=81=AB=E5=8B=95?=
=?UTF-8?q?=E4=BD=9C=E3=81=97=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=81=AE?=
=?UTF-8?q?=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-typeをセットする際にcharsetが付与されてしまう関係で正しい条件文に入っていなかったため修正
---
html/webapp/modules/common/files/js/common.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/webapp/modules/common/files/js/common.js b/html/webapp/modules/common/files/js/common.js
index b9caa57..c499616 100644
--- a/html/webapp/modules/common/files/js/common.js
+++ b/html/webapp/modules/common/files/js/common.js
@@ -1175,7 +1175,7 @@ clsCommon.prototype = {
//}
if(this['callbackfunc']){
- if (transport.getResponseHeader("Content-Type") == "text/xml" && transport.responseXML) {
+ if (transport.getResponseHeader("Content-Type").substring(0, 8) === "text/xml" && transport.responseXML) {
res = transport.responseXML;
}
From f54efe5d4cf59135cc3217b86f6995f23585f011 Mon Sep 17 00:00:00 2001
From: ohga
Date: Thu, 26 Feb 2015 16:12:28 +0900
Subject: [PATCH 10/65] =?UTF-8?q?[php5.4=E4=BB=A5=E4=B8=8A=E5=AF=BE?=
=?UTF-8?q?=E5=BF=9C]=E6=9C=AA=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88?=
=?UTF-8?q?=E3=83=BC=E3=83=AB=E3=83=A2=E3=82=B8=E3=83=A5=E3=83=BC=E3=83=AB?=
=?UTF-8?q?=E3=81=8C=E3=81=AA=E3=81=84=E3=81=A8=E3=81=8D=E3=81=ABWarning?=
=?UTF-8?q?=E3=81=8C=E5=87=BA=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AE=E4=BF=AE?=
=?UTF-8?q?=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
未インストールモジュールがないときにモジュール管理を表示するとWarningが出る問題の修正
---
html/webapp/modules/module/view/admin/init/Init.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/webapp/modules/module/view/admin/init/Init.class.php b/html/webapp/modules/module/view/admin/init/Init.class.php
index 81ffa04..c6b10e0 100644
--- a/html/webapp/modules/module/view/admin/init/Init.class.php
+++ b/html/webapp/modules/module/view/admin/init/Init.class.php
@@ -19,7 +19,7 @@ class Module_View_Admin_Init extends Action
// 値をセットするため
var $sysmodules_obj = null;
var $modules_obj = null;
- var $installs_obj = null;
+ var $installs_obj = array();
var $maxNum = 0;
var $sysMaxNum = 0;
From d12a6655256cd50569d475298445a11e6d81063f Mon Sep 17 00:00:00 2001
From: ohga
Date: Thu, 26 Feb 2015 16:17:57 +0900
Subject: [PATCH 11/65] =?UTF-8?q?[php5.4=E4=BB=A5=E4=B8=8A=E5=AF=BE?=
=?UTF-8?q?=E5=BF=9C]=E3=83=86=E3=83=B3=E3=83=97=E3=83=AC=E3=83=BC?=
=?UTF-8?q?=E3=83=88=E3=81=A7=E4=B8=8D=E6=AD=A3=E3=81=AA=E5=8F=97=E3=81=91?=
=?UTF-8?q?=E5=8F=96=E3=82=8A=E6=96=B9=E3=82=92=E3=81=97=E3=81=A6=E3=81=84?=
=?UTF-8?q?=E3=82=8B=E3=81=9F=E3=82=81=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
セッションの_use_db_debugに「_ON」か「_OFF」のいずれかを入れているのに、テンプレートでは_use_db_debug.conf_valueを使用していたため修正
---
.../templates/default/system_view_main_development.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html/webapp/modules/system/templates/default/system_view_main_development.html b/html/webapp/modules/system/templates/default/system_view_main_development.html
index 3546e0e..8ef364a 100644
--- a/html/webapp/modules/system/templates/default/system_view_main_development.html
+++ b/html/webapp/modules/system/templates/default/system_view_main_development.html
@@ -3,9 +3,9 @@
diff --git a/html/webapp/templates/main/redirect.html b/html/webapp/templates/main/redirect.html
old mode 100644
new mode 100755
index 0869964..79650e8
--- a/html/webapp/templates/main/redirect.html
+++ b/html/webapp/templates/main/redirect.html
@@ -2,8 +2,22 @@
+<{if isset($action.redirect_url|smarty:nodefaults)}>
+ <{assign var="redirect_url" value=$action.redirect_url|smarty:nodefaults}>
+<{elseif empty($redirect_url|smarty:nodefaults)}>
+ <{assign var="redirect_url" value=$smarty.const.BASE_URL|cat:$smarty.const.INDEX_FILE_NAME}>
+<{/if}>
-<{else}><{$url|replace:"&":"&"}><{/if}>" />
+
{$smarty.const.INDEX_FILE_NAME}>?<{$smarty.const.ACTION_KEY}>=common_download_css" />
<{$header_field.script_header|smarty:nodefaults}>
@@ -26,22 +40,14 @@
+
From 909fdcadc30a3d4cf209546bbb5fce1bb8f920ff Mon Sep 17 00:00:00 2001
From: Ryuji Masukawa
Date: Tue, 4 Oct 2016 13:59:28 +0900
Subject: [PATCH 63/65] =?UTF-8?q?=E6=BA=96=E5=82=99=E4=B8=AD=E3=81=AE?=
=?UTF-8?q?=E3=82=82=E3=81=AE=E3=81=8C=E4=B8=80=E9=83=A8=E8=A1=A8=E7=A4=BA?=
=?UTF-8?q?=E3=81=95=E3=82=8C=E3=82=8B=E4=B8=8D=E5=85=B7=E5=90=88=E3=81=AB?=
=?UTF-8?q?=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../admin/chgdisplay/Chgdisplay.class.php | 28 ++++++++++++++++---
1 file changed, 24 insertions(+), 4 deletions(-)
mode change 100755 => 100644 html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
diff --git a/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php b/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
old mode 100755
new mode 100644
index 173d264..4e7ec24
--- a/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
+++ b/html/webapp/modules/room/action/admin/chgdisplay/Chgdisplay.class.php
@@ -53,10 +53,15 @@ function execute()
// --- 準備中->公開中に変更した場合、そのサブグループも公開中にする
// ----------------------------------------------------------------------
if($this->page['display_flag'] != $display_flag) {
- $where_params = array(
- "parent_id" => intval($this->edit_current_page_id)
+ $rooms_where_params = array(
+ "room_id = ".intval($this->edit_current_page_id)." OR parent_id = ".intval($this->edit_current_page_id) => null
);
- $subgroup_pages_id_arr =& $this->pagesView->getPages($where_params, null, null, null, array($this, "_subpagesFetchcallback"));
+ $rooms_id_arr =& $this->pagesView->getPages($rooms_where_params, null, null, null, array($this, "_roomsFetchcallback"));
+ $pages_where_params = array(
+ " room_id IN (". implode(",", $rooms_id_arr). ") " => null
+ );
+ $subgroup_pages_id_arr =& $this->pagesView->getPages($pages_where_params, null, null, null, array($this, "_subpagesFetchcallback"));
+
if(count($subgroup_pages_id_arr) > 0) {
$params = array(
"display_flag" => $display_flag
@@ -71,7 +76,22 @@ function execute()
}
}
}
-
+
+ // add by mutaguchi@opensource-workshop.jp
+ /**
+ * fetch時コールバックメソッド
+ * @param result adodb object
+ * @return array items
+ * @access private
+ */
+ function &_roomsFetchcallback($result) {
+ $ret = array();
+ while ($row = $result->fetchRow()) {
+ $ret[$row['room_id']] = $row['room_id'];
+ }
+ return $ret;
+ }
+
/**
* fetch時コールバックメソッド
* @param result adodb object
From b4fb8b6f6fc7077bd2ccc9a4a10aacdf6fe4d6a5 Mon Sep 17 00:00:00 2001
From: kteraguchi
Date: Tue, 25 Apr 2017 18:04:04 +0900
Subject: [PATCH 64/65] Fix script tag escape
---
html/webapp/components/escape/Text.class.php | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/html/webapp/components/escape/Text.class.php b/html/webapp/components/escape/Text.class.php
index c3e1ae6..7572899 100644
--- a/html/webapp/components/escape/Text.class.php
+++ b/html/webapp/components/escape/Text.class.php
@@ -445,6 +445,11 @@ function _escapeWysiwygAllowHtmltag($string) {
$script_flag = false;
foreach ($parts as $part) {
// script-/scriptまではそのまま連結
+ if(preg_match("/<\/script>$/u", $part)) {
+ $script_flag = false;
+ $string .= $part;
+ continue;
+ }
if(preg_match("/^/u", $part) || $script_flag == true) {
$script_flag = true;
if (preg_match("/<\!\-\-comment\-\->/u", $part)) {
@@ -453,10 +458,6 @@ function _escapeWysiwygAllowHtmltag($string) {
}
$string .= $part;
continue;
- } else if(preg_match("/<\/script>$/u", $part)) {
- $script_flag = false;
- $string .= $part;
- continue;
}
if (preg_match("/<\!\-\-comment\-\->/u", $part)) {
From c06abd188c5e04d4f52ae58b587d9915f23341bf Mon Sep 17 00:00:00 2001
From: Ryuji Masukawa
Date: Wed, 17 Jan 2018 18:52:29 +0900
Subject: [PATCH 65/65] =?UTF-8?q?=E4=BB=A5=E4=B8=8B=E3=81=AE=E4=B8=8D?=
=?UTF-8?q?=E5=85=B7=E5=90=88=E3=82=92=E4=BF=AE=E6=AD=A3=20=E2=91=A0?=
=?UTF-8?q?=E6=96=B0=E8=A6=8F=E3=81=A7ToDo=E3=82=92=E4=BD=9C=E6=88=90=20?=
=?UTF-8?q?=E2=91=A1ToDo=E3=82=92=E8=BF=BD=E5=8A=A0=EF=BC=88=E3=82=AB?=
=?UTF-8?q?=E3=83=AC=E3=83=B3=E3=83=80=E3=83=BC=E3=81=AB=E8=A1=A8=E7=A4=BA?=
=?UTF-8?q?=E3=81=95=E3=81=9B=E3=82=8B=EF=BC=89=20=E2=91=A2=E3=82=BB?=
=?UTF-8?q?=E3=83=83=E3=83=86=E3=82=A3=E3=83=B3=E3=82=B0=E3=83=A2=E3=83=BC?=
=?UTF-8?q?=E3=83=89=E3=81=A7ToDo=E3=83=AA=E3=82=B9=E3=83=88=E4=B8=80?=
=?UTF-8?q?=E8=A6=A7=E8=A1=A8=E7=A4=BA=E3=81=AE=E7=8A=B6=E6=85=8B=E3=81=A7?=
=?UTF-8?q?=E3=83=AA=E3=82=B9=E3=83=88=E9=81=B8=E6=8A=9E=E3=80=81=E3=80=8C?=
=?UTF-8?q?=E5=89=8A=E9=99=A4=E3=80=8D=E3=83=9C=E3=82=BF=E3=83=B3=E6=8A=BC?=
=?UTF-8?q?=E4=B8=8B=20=E2=91=A3=E3=82=AB=E3=83=AC=E3=83=B3=E3=83=80?=
=?UTF-8?q?=E3=83=BC=E3=81=AE=E4=BA=88=E5=AE=9A=E3=81=8C=E5=89=8A=E9=99=A4?=
=?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=9A=E6=AE=8B=E3=81=A3=E3=81=A6=E3=81=84?=
=?UTF-8?q?=E3=82=8B=E7=8A=B6=E6=85=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
html/webapp/modules/todo/action/dicon.ini | 3 ++-
.../todo/action/edit/delete/Delete.class.php | 14 ++++++++++++++
.../modules/todo/action/edit/delete/maple.ini | 1 +
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/html/webapp/modules/todo/action/dicon.ini b/html/webapp/modules/todo/action/dicon.ini
index a22cc43..d94360c 100644
--- a/html/webapp/modules/todo/action/dicon.ini
+++ b/html/webapp/modules/todo/action/dicon.ini
@@ -1,3 +1,4 @@
[DIContainer]
todoAction = "modules://todo.components.action"
-todoView = "modules://todo.components.view"
\ No newline at end of file
+todoView = "modules://todo.components.view"
+calendarPlanAction = "calendar.action"
diff --git a/html/webapp/modules/todo/action/edit/delete/Delete.class.php b/html/webapp/modules/todo/action/edit/delete/Delete.class.php
index bf49ca8..d2d0144 100644
--- a/html/webapp/modules/todo/action/edit/delete/Delete.class.php
+++ b/html/webapp/modules/todo/action/edit/delete/Delete.class.php
@@ -19,6 +19,7 @@ class Todo_Action_Edit_Delete extends Action
// 使用コンポーネントを受け取るため
var $todoAction = null;
var $db = null;
+ var $calendarPlanAction = null;
/**
* Todo削除アクション
@@ -27,6 +28,19 @@ class Todo_Action_Edit_Delete extends Action
*/
function execute()
{
+ $whereParams = array(
+ "todo_id" => $this->todo_id,
+ "calendar_id!=0" => null
+ );
+ $tasks = $this->db->selectExecute('todo_task', $whereParams);
+ if(!empty($tasks)) {
+ foreach($tasks as $task) {
+ if (!$this->calendarPlanAction->deletePlan($task["calendar_id"], CALENDAR_PLAN_EDIT_THIS)) {
+ return false;
+ }
+ }
+ }
+
$whereParams = array(
"todo_id" => $this->todo_id
);
diff --git a/html/webapp/modules/todo/action/edit/delete/maple.ini b/html/webapp/modules/todo/action/edit/delete/maple.ini
index ba8de50..6bf5c35 100644
--- a/html/webapp/modules/todo/action/edit/delete/maple.ini
+++ b/html/webapp/modules/todo/action/edit/delete/maple.ini
@@ -6,6 +6,7 @@ key:room_id,block_id,todo_id.todo.todoExists = "1:lang._invalid_input"
[Action]
db = "ref:DbObject"
+calendarPlanAction = "ref:calendarPlanAction"
[View]
success = "action:todo_view_edit_list"
\ No newline at end of file