Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[不具合]特定の条件でVtigerのモデルでプロパティの存在チェックができずFatalエラーが発生する #1197

Open
Remicck opened this issue Jan 28, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Remicck
Copy link
Contributor

Remicck commented Jan 28, 2025

概要(Overview)
Vtiger_Base_Model->has()にて、特定のケースでエラー落ちする。

再現手順(To Reproduce)
不具合の発生手順を細かく記載してください。
(Steps to reproduce the behavior:)

  1. スクリプトからvtranslateを利用する
  2. hasがFatalErrorを発生させる

スクリーンショット(Screenshots)

PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, TrackableObject given in /var/www/html/{crm dir}/includes/runtime/BaseModel.php:87

稼働環境 Server (please complate the following information):

  • OS: Ubuntu 24.04
  • PHP version: 8.3.6

その他情報(Additional context)

includes/runtime/BaseModel.php:82付近

/**
 * Function to check if the key exists.
 * @param String $key
 */
public function has($key) {
  return is_array($this->valueMap) && array_key_exists($key, $this->valueMap);
}
@Remicck Remicck added the bug Something isn't working label Jan 28, 2025
@Remicck Remicck self-assigned this Jan 28, 2025
@Remicck Remicck added this to the v7.4.2 milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant